-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore UTS46 validity criteria V2 #240
Conversation
66d4f1e
to
7a11639
Compare
(third, fourth) == (Some('-'), Some('-')) | ||
} || label.starts_with("-") | ||
// Spec says, the label must not contain a HYPHEN-MINUS character in both the | ||
// third and fourth positions. But nobody follow this criteria. See the spec issue below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Spec says that the", and "follows"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
LGTM but I would like sign-off from @SimonSapin here |
let fourth = chars.next(); | ||
(third, fourth) == (Some('-'), Some('-')) | ||
} || label.starts_with("-") | ||
// Spec says that the, label must not contain a HYPHEN-MINUS character in both the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no comma
Isn't this the same as #208? If so, it's really sad that that PR has been sitting there for so long :( |
It removes the configurability. |
Fixed the typo |
r? @SimonSapin |
@bors-servo r+ Thanks! |
📌 Commit 695a507 has been approved by |
Ignore UTS46 validity criteria V2 Fixes #160 r? @SimonSapin or @Manishearth <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/240) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
Fixes #160
r? @SimonSapin or @Manishearth
This change is