← Back to release summary

URLPattern ignoreCase

Category
Miscellaneous
Type
Chromium catches up
Status
Enabled by default (Chrome 107)
Intent stage
Shipped

WPT details: Search for "ignoreCase" in the test results here: https://wpt.fyi/results/urlpattern/urlpattern.any.html?label=master&label=experimental&aligned

Summary

Many client-side JavaScript frameworks currently use case insensitive URL matching. URLPattern, however, follows URL semantics and treats many parts of the URL as case sensitive. This feature adds an `ignoreCase` option to the URLPattern that switches all matching operations to case insensitive for that given pattern.

Motivation

Many client-side JavaScript frameworks currently use case insensitive URL matching. URLPattern, however, follows URL semantics and treats many parts of the URL as case sensitive. This feature adds an `ignoreCase` option to the URLPattern that switches all matching operations to case insensitive for that given pattern.

Standards & signals

Ecosystem

Explainers: https://github.com/WICG/urlpattern/issues/148#issuecomment-965193134

View on chromestatus.com