Skip to content

Commit 66e178c

Browse files
turt2liverichvdh
authored andcommitted
Merge pull request #3176 from matrix-org/travis/clarification/lowercasing
Case fold instead of lowercase
2 parents 9758286 + b547b97 commit 66e178c

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Clarify that some identifiers may be lowercase prior to processing, as per [MSC2265](https://github.com/matrix-org/matrix-doc/pull/2265).
1+
Clarify that some identifiers must be case folded prior to processing, as per [MSC2265](https://github.com/matrix-org/matrix-doc/pull/2265).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that some identifiers must be case folded prior to processing, as per [MSC2265](https://github.com/matrix-org/matrix-doc/pull/2265).

content/appendices.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ Represents E-Mail addresses. The `address` is the raw email address in
756756
other text such as real name, angle brackets or a mailto: prefix.
757757

758758
In addition to lowercasing the domain component of an email address,
759-
implementations are expected to lowercase the localpart as described
760-
in [the unicode mapping file](https://www.unicode.org/Public/8.0.0/ucd/CaseFolding.txt)
761-
prior to any processing. For example, `Strauß@Example.com` must be
762-
considered to be `[email protected]` while processing the email
763-
address.
759+
implementations are expected to apply the unicode case-folding algorithm
760+
as described under "Caseless Matching" in
761+
[chapter 5 of the unicode standard](https://www.unicode.org/versions/Unicode13.0.0/ch05.pdf#G21790).
762+
For example, `Strauß@Example.com` must be considered to be `[email protected]`
763+
while processing the email address.
764764

765765
### PSTN Phone numbers
766766

proposals/2265-email-lowercase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Sydent.
2323
This proposal suggests changing the specification of the e-mail 3PID type in
2424
[the Matrix spec appendices](https://matrix.org/docs/spec/appendices#pid-types)
2525
to mandate that, before any processing, e-mail addresses must go through a full
26-
case folding based on [the unicode mapping
27-
file](https://www.unicode.org/Public/8.0.0/ucd/CaseFolding.txt), on top of
26+
case folding as described under "Caseless Matching" in
27+
[chapter 5 of the unicode standard](https://www.unicode.org/versions/Unicode13.0.0/ch05.pdf#G21790), on top of
2828
having their domain lowercased.
2929

3030
This means that `Strauß@Example.com` must be considered as being the same e-mail

0 commit comments

Comments
 (0)