Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RegExp] Invalid escape error on Android 8.1 Webview(Chrome 61) #171

Open
Tim-OuY opened this issue Aug 31, 2023 · 1 comment
Open

[RegExp] Invalid escape error on Android 8.1 Webview(Chrome 61) #171

Tim-OuY opened this issue Aug 31, 2023 · 1 comment

Comments

@Tim-OuY
Copy link

Tim-OuY commented Aug 31, 2023

pdfh5: v1.4.5+

pdf.worker.js: const SpecialCharRegExp = new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$", "u");

Error info:
chunk-vendors.c8fc97f3679b8735.js:32 Uncaught SyntaxError: Invalid regular expression: /^(\s)|(\p{Mn})|(\p{Cf})$/: Invalid escape at RegExp (<anonymous>) at new RegExp (chunk-vendors.c8fc97f3679b8735.js:32:99057) at Module.e (chunk-vendors.c8fc97f3679b8735.js:85:558408) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.e (chunk-vendors.c8fc97f3679b8735.js:85:463742) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.e (chunk-vendors.c8fc97f3679b8735.js:85:379588) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.e (chunk-vendors.c8fc97f3679b8735.js:85:186083) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.s.EvaluatorPreprocessor.s.EvaluatorPreprocessor (chunk-vendors.c8fc97f3679b8735.js:85:163708) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.E (chunk-vendors.c8fc97f3679b8735.js:85:104839) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617) at Object.e (chunk-vendors.c8fc97f3679b8735.js:85:80663) at h (chunk-vendors.c8fc97f3679b8735.js:85:1098617)

@Tim-OuY
Copy link
Author

Tim-OuY commented Aug 31, 2023

v1.4.2 is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant