Skip to content

Commit

Permalink
Merge pull request #27677 from element-hq/t3chguy/intl-segmenter-mode…
Browse files Browse the repository at this point in the history
…rnizr

Add Modernizr rule for Intl.Segmenter
  • Loading branch information
t3chguy authored Jul 5, 2024
2 parents b4aa375 + be92e64 commit 6684503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<keyof ModernizrStatic>;

Expand Down

0 comments on commit 6684503

Please sign in to comment.