mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/LibURL: Use an IgnoreCase enum for URLPatternOptions
This is to save a future name conflict that will appear between the options IDL dictionary and the options struct that are both present in the spec. It is also a nicer interface for now given there is only a single option at the moment.
This commit is contained in:
parent
f80e7d6816
commit
8a33c57c1e
Notes:
github-actions[bot]
2025-04-06 12:28:11 +00:00
Author: https://github.com/shannonbooth
Commit: 8a33c57c1e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3847
Reviewed-by: https://github.com/trflynn89
4 changed files with 14 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
|||
namespace URL::Pattern {
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#url-pattern-create
|
||||
PatternErrorOr<Pattern> Pattern::create(Input const& input, Optional<String> const& base_url, Options const&)
|
||||
PatternErrorOr<Pattern> Pattern::create(Input const& input, Optional<String> const& base_url, IgnoreCase)
|
||||
{
|
||||
// 1. Let init be null.
|
||||
Init init;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue