← Back to release summary

URLPattern ignoreCase

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

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

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

View on chromestatus.com