mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 12:31:51 +00:00
Compiling a URLPattern component will generate a 'parts list' which is used for generating the regular expression that is used for matching against URLs. This parts list is also used to generate (through this function) a pattern string. The pattern string of a URL component is what is exposed on the USVString getters of the URLPattern class itself. As an example, the following: ``` let pattern = new URLPattern({ "pathname": "/foo/(.*)*" }); console.log(pattern.pathname); ``` Will log the pattern string of: '/foo/**'. |
||
---|---|---|
.. | ||
Canonicalization.cpp | ||
Canonicalization.h | ||
Component.h | ||
ConstructorStringParser.cpp | ||
ConstructorStringParser.h | ||
Init.cpp | ||
Init.h | ||
Options.cpp | ||
Options.h | ||
Part.cpp | ||
Part.h | ||
Pattern.cpp | ||
Pattern.h | ||
PatternError.h | ||
String.cpp | ||
String.h | ||
Tokenizer.cpp | ||
Tokenizer.h |