[wpt-sync] Sync PR 28082 - URLPattern: Compile regexp with `u` flag.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox88 fixed)
| Tracking | Status | |
|---|---|---|
| firefox88 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
73.57 KB,
text/plain
|
Details |
Sync web-platform-tests PR 28082 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/28082
Details from upstream follow.
b'Ben Kelly <wanderview@chromium.org>' wrote:
URLPattern: Compile regexp with
uflag.This CL enables unicode mode when compiling the internal regexp. This
is the recommended mode for new features. One benefit we get here is
that the regexp compilation will fail for unknown escape sequences which
helps allow future escape sequences to be added to the standard.It turns out, however, that path-to-regexp was over-escaping its
regular expressions. So we had to remove=,!, and:from the
list of characters to escape.This has all been discussed on:
https://github.com/WICG/urlpattern/issues/25
Bug: 1141510
Change-Id: Id4eb6ceaa3b4aa0bb9bc33e200cd40d0b65feb49Reviewed-on: https://chromium-review.googlesource.com/2758148
WPT-Export-Revision: f20962befb7b7259a10816d593cdedb6e896e3f0
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
Comment 4•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cd6ab87d9ce4
https://hg.mozilla.org/mozilla-central/rev/a8a2426f02b2
Description
•