Skip to content

[Firefox] Firefox errors on the markdown's unicode regular expression for word definitions  #83698

Closed

Description

@mjbvz

Repo

  1. Using firefox
  2. Open a markdown file

Bug
In dev tools, see:

invalid identity escape in regular expression: _reviveRegExp@http://localhost:9888/static/out/vs/workbench/api/browser/mainThreadLanguageFeatures.js:460:20
$setLanguageConfiguration@http://localhost:9888/static/out/vs/workbench/api/browser/mainThreadLanguageFeatures.js:485:88
_doInvokeHandler@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:331:27
_invokeHandler@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:316:45
_receiveRequest@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:243:32
_receiveOneMessage@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:171:26
RPCProtocol/<@http://localhost:9888/static/out/vs/workbench/services/extensions/common/rpcProtocol.js:61:52
fire@http://localhost:9888/static/out/vs/base/common/event.js:458:38

Activity

  1. added
    bug
    markdown-ext
    firefox
    on Oct 30, 2019
  2. added
    web
    on Oct 31, 2019
  3. rebornix commented on Nov 11, 2019

    @rebornix
    Contributor

    It's already being tracked in Firefox bugzilla as it doesn't implement RegExp Unicode Property Escapes yet https://bugzilla.mozilla.org/show_bug.cgi?id=1361876

    export function regExpFlags(regexp: RegExp): string {
    return (regexp.global ? 'g' : '')
    + (regexp.ignoreCase ? 'i' : '')
    + (regexp.multiline ? 'm' : '')
    + ((regexp as any).unicode ? 'u' : '');
    }

    I'm not a fan of having special logic for Firefox to stop unicode escaping and creating regex without u flag. The error is thrown from word pattern regex parsing and as I didn't see any misbehavior of word related operations in Markdown files, I'll recommend to put this issue in backlog and ask for Firefox to catch up Matt Bierner (@mjbvz) .

  4. added
    upstream
    upstream-issue-linked
    on Nov 11, 2019
  5. added this to the Backlog milestone on Nov 11, 2019
  6. mjbvz commented on Jul 7, 2020

    @mjbvz
    ContributorAuthor

    Confirmed this is fixed in the latest Firefox release

  7. added
    verified
    on Aug 6, 2020
  8. locked and limited conversation to collaborators on Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfirefoxmarkdown-extupstreamupstream-issue-linkedverifiedweb

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions