Merge pull request #28053 from element-hq/removeRegexUnicodesModernizrCheck
Some checks are pending
Build / Build on ${{ matrix.image }} (macos-latest, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}) (push) Waiting to run
Build / Build on ${{ matrix.image }} (ubuntu-latest, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}) (push) Waiting to run
Build / Build on ${{ matrix.image }} (windows-latest, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}) (push) Waiting to run
Build and Deploy develop / Build & Deploy develop.element.io (push) Waiting to run
Deploy documentation / GitHub Pages (push) Waiting to run
Deploy documentation / deploy (push) Blocked by required conditions
matrix-react-sdk End to End Tests / Playwright (push) Waiting to run
Static Analysis / Typescript Syntax Check (push) Waiting to run
Static Analysis / i18n Check (push) Waiting to run
Static Analysis / ESLint (push) Waiting to run
Static Analysis / Style Lint (push) Waiting to run
Static Analysis / Workflow Lint (push) Waiting to run
Static Analysis / Analyse Dead Code (push) Waiting to run
Tests / Jest (push) Waiting to run
Tests / Skip SonarCloud in merge queue (push) Blocked by required conditions

Remove regexpunicodesets modernizr check
This commit is contained in:
David Langley 2024-09-16 12:07:50 +00:00 committed by GitHub
commit eadff6333b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,11 +62,6 @@ function checkBrowserFeatures(): boolean {
);
// ES2019: http://262.ecma-international.org/10.0/#sec-object.fromentries
window.Modernizr.addTest("objectfromentries", () => typeof window.Object?.fromEntries === "function");
// ES2024: https://tc39.es/ecma262/2024/#sec-get-regexp.prototype.unicodesets
window.Modernizr.addTest(
"regexpunicodesets",
() => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype,
);
// ES2024: https://402.ecma-international.org/9.0/#sec-intl.segmenter
// The built-in modernizer 'intl' check only checks for the presence of the Intl object, not the Segmenter,
// and older Firefox has the former but not the latter, so we add our own.