-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
implement URLPattern #785
base: main
Are you sure you want to change the base?
implement URLPattern #785
Conversation
89f46f0
to
02492e1
Compare
0ccd6d3
to
d2cd4f8
Compare
@anonrig Just to confirm... is this the spec? https://urlpattern.spec.whatwg.org |
Yes that's correct @lemire |
e51503f
to
524cb73
Compare
1a98cc9
to
18ef1a6
Compare
I don't particular mind, but please be aware that you are changing the coding convention. The C++ standard library uses all-lowercase with underscores names. You are using Camel case. If you merge this, it will mean that within the same library, we mix two conventions. |
380d57e
to
880e260
Compare
51690eb
to
010bc69
Compare
…into yagiz/add-url-pattern
b893367
to
7393441
Compare
* adding some optional logging of the parse results * guarding * mark it as used * fixed ECMAScript qualification --------- Co-authored-by: Daniel Lemire <[email protected]>
std::regex_constants::syntax_option_type flags{}; | ||
std::regex regexp{}; | ||
std::regex_constants::syntax_option_type flags = std::regex::ECMAScript; | ||
std::regex regexp{"*"}; |
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.
here I saw that wpt_urlpattern_tests.has_regexp_groups
test passes when we use .*
for ecmascript compatibility
This implements URLPattern from scratch. I'm adding
TODO: Optimization opportunity
notes in places I think an optimization can be done. The goal is to merge this once there is noTODO: Implement this
comments.TODOs
TODO: Implement this
occurrences (currently 4)url_pattern::match