Skip to content

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

Open
@Tim-OuY

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions