Merge pull request #27677 from element-hq/t3chguy/intl-segmenter-modernizr
Add Modernizr rule for Intl.Segmenterpull/27685/head
commit
668450325c
|
@ -75,6 +75,8 @@ function checkBrowserFeatures(): boolean {
|
||||||
"regexpunicodesets",
|
"regexpunicodesets",
|
||||||
() => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype,
|
() => 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<keyof ModernizrStatic>;
|
const featureList = Object.keys(window.Modernizr) as Array<keyof ModernizrStatic>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue