Some questions: Can you add some tests like this: ``` + // Collapse multiple "special" spaces like NBSP (\u00A0), EM space (\u2003), etc. + ["Friend \u00A0\u00A0\u2003 A <ws@example.com>", + [{name: "Friend A", email: "ws@example.com"}]], + // Maintain tabs. + ["Friend \t \t A <ws@example.com>", + [{name: "Friend \t \t A", email: "ws@example.com"}]], ``` Why are we maintaining tabs and not replace them with spaces? Why are we replacing \u0600-\u0605\, they seem printable. As I said, I found a webpage with , so why wouldn't that be valid in a display name? Can you explain in a way I can retrace the steps where `\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]` came from.
Bug 1506587 Comment 44 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Some questions: Can you add some tests like this: ``` + // Collapse multiple "special" spaces like NBSP (\u00A0), EM space (\u2003), etc. + ["Friend \u00A0\u00A0\u2003 A <ws@example.com>", + [{name: "Friend A", email: "ws@example.com"}]], + // Maintain tabs. + ["Friend \t \t A <ws@example.com>", + [{name: "Friend \t \t A", email: "ws@example.com"}]], ``` Why are we maintaining tabs and not replace them with spaces? Why are we replacing \u0600-\u0605\, they seem printable. As I said, I found a webpage with , so why wouldn't that be valid in a display name? Can you explain in a way I can retrace the steps where `\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]` came from ... and add a comment explaining it.
Some questions: Can you add some tests like this: ``` + // Collapse multiple "special" spaces like NBSP (\u00A0), EM space (\u2003), etc. + ["Friend \u00A0\u00A0\u2003 A <ws@example.com>", + [{name: "Friend A", email: "ws@example.com"}]], + // Maintain tabs. + ["Friend \t \t A <ws@example.com>", + [{name: "Friend \t \t A", email: "ws@example.com"}]], ``` Why are we maintaining tabs and not replace them with spaces? Why are we replacing \u0600-\u0605\, they seem printable. As I said, I found a webpage with , so why wouldn't that be valid in a display name? Can you explain in a way I can retrace the steps where `\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]` came from ... and add a comment explaining it. EDIT: OK, it mentions "surrogate code point pairs", but a reference how those are generated would be useful.