mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Update user ID encoding spec link
This commit is contained in:
parent
db165c9885
commit
c773e6f4c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue