diff --git a/src/vector/index.ts b/src/vector/index.ts index 374212352c..b5255d4974 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -75,6 +75,8 @@ function checkBrowserFeatures(): boolean { "regexpunicodesets", () => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype, ); + // ES2024: https://402.ecma-international.org/9.0/#sec-intl.segmenter + window.Modernizr.addTest("intlsegmenter", () => typeof window.Intl?.Segmenter === "function"); const featureList = Object.keys(window.Modernizr) as Array;