Skip to content

Commit 57ebcdf

Browse files
committed
[idan] Improve Bidi Rules implementation
* As the first paragraph of The Bidi Rules section explains, the rules need to be ignored if there are no Bidi labels present in the domain name. So, add `is_bidi_domain` evaluation to `processing()`, and pass it down to `passes_bidi()` to act on. * Add unit tests for the bidi rules, making it faster and easier to maintain the feature.
1 parent 8c89ac9 commit 57ebcdf

File tree

2 files changed

+211
-102
lines changed

2 files changed

+211
-102
lines changed

idna/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ rustc-serialize = "0.3"
2020

2121
[dependencies]
2222
unicode-bidi = "0.3"
23-
unicode-normalization = "0.1.3"
23+
unicode-normalization = "0.1.5"
2424
matches = "0.1"

0 commit comments

Comments
 (0)