From c773e6f4c9606f47efb624b897c13dabe60c5c5e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 21 Feb 2022 23:20:51 +0200 Subject: [PATCH] Update user ID encoding spec link --- id/userid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/id/userid.go b/id/userid.go index 7ba5e0ee..3b9e3a1e 100644 --- a/id/userid.go +++ b/id/userid.go @@ -138,7 +138,7 @@ func isValidEscapedChar(b byte) bool { } // EncodeUserLocalpart encodes the given string into Matrix-compliant user ID localpart form. -// See http://matrix.org/docs/spec/intro.html#mapping-from-other-character-sets +// See https://spec.matrix.org/v1.2/appendices/#mapping-from-other-character-sets // // This returns a string with only the characters "a-z0-9._=-". The uppercase range A-Z // are encoded using leading underscores ("_"). Characters outside the aforementioned ranges @@ -162,7 +162,7 @@ func EncodeUserLocalpart(str string) string { // DecodeUserLocalpart decodes the given string back into the original input string. // Returns an error if the given string is not a valid user ID localpart encoding. -// See http://matrix.org/docs/spec/intro.html#mapping-from-other-character-sets +// See https://spec.matrix.org/v1.2/appendices/#mapping-from-other-character-sets // // This decodes quoted-printable bytes back into UTF8, and unescapes casing. For // example: