Skip to content

Commit

Permalink
Add comment about where we got the bidi characters
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoire-mullvad committed Jul 26, 2024
1 parent 9bb4c30 commit 3897101
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl CharacterType {
Self::CodePoint(rule_char) => *rule_char == c,
Self::Range(range) => range.contains(c),
Self::Bidi => [
// List of bidirectional formatting characters from https://en.wikipedia.org/wiki/Trojan_Source
'\u{202A}', '\u{202b}', '\u{202c}', '\u{202d}', '\u{202e}', '\u{2066}', '\u{2067}',
'\u{2068}', '\u{2069}',
]
Expand Down

0 comments on commit 3897101

Please sign in to comment.