mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibURL/Pattern: Stub out URL::Pattern::match
This will allow us to complete the IDL interface, which will leave remaining work to implement the URL pattern specification within LibURL.
This commit is contained in:
parent
ba93e2a8a3
commit
10b32a8dd8
Notes:
github-actions[bot]
2025-03-04 21:52:46 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/10b32a8dd83 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3739 Reviewed-by: https://github.com/trflynn89
2 changed files with 9 additions and 0 deletions
|
@ -91,6 +91,13 @@ PatternErrorOr<Pattern> Pattern::create(Input const& input, Optional<String> con
|
|||
return url_pattern;
|
||||
}
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#url-pattern-match
|
||||
PatternErrorOr<Optional<Result>> Pattern::match(Input const&, Optional<String> const&) const
|
||||
{
|
||||
dbgln("FIXME: Implement URL::Pattern::match");
|
||||
return OptionalNone {};
|
||||
}
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#url-pattern-has-regexp-groups
|
||||
bool Pattern::has_regexp_groups() const
|
||||
{
|
||||
|
|
|
@ -49,6 +49,8 @@ class Pattern {
|
|||
public:
|
||||
static PatternErrorOr<Pattern> create(Input const&, Optional<String> const& base_url = {}, Options const& = {});
|
||||
|
||||
PatternErrorOr<Optional<Result>> match(Input const&, Optional<String> const& base_url_string) const;
|
||||
|
||||
bool has_regexp_groups() const;
|
||||
|
||||
Component const& protocol_component() const { return m_protocol_component; }
|
||||
|
|
Loading…
Add table
Reference in a new issue