UrlPatternOptions Class

Options for creating a URLPattern.

public sealed class UrlPatternOptions

Constructors

NameDescription
UrlPatternOptions()

UrlPatternOptions()

public UrlPatternOptions()

No documentation is available.

Properties

NameDescription
IgnoreCaseGets or sets whether the pathname, search and hash should be matched case-insensitively.

Gets or sets whether the pathname, search and hash should be matched case-insensitively.

public bool IgnoreCase { get; set; }

Property value

bool

Remarks

If true, the pathname, search and hash are matched case-insensitively. If false (default), they are matched case-sensitively.

The option does not reach the protocol, username, password, hostname and port components, which the spec always compiles with the default options. In practice the protocol and hostname are still matched case-insensitively, because both the pattern and the URL are lower-cased before they are compared; the username, password and port are always case-sensitive.

WHATWG URL Pattern Spec - Create