diff --git a/app/javascript/utils/regex-check.ts b/app/javascript/utils/regex-check.ts index 7b348c95a4..9f6f77123d 100644 --- a/app/javascript/utils/regex-check.ts +++ b/app/javascript/utils/regex-check.ts @@ -37,6 +37,8 @@ function compareVersions(versionA: string, versionB: string): number { } export function isLookbehindSupported(): boolean { + if (!areAllRegExpFeaturesSupported()) return false + const parser = new UAParser().getBrowser() switch (parser.name) {