question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot load editor in Safari: SyntaxError: Invalid regular expression: invalid group specifier name

See original GitHub issue

As of yesterday, https://vega.github.io/editor/ doesn’t load in Safari Version 14.0.2 (16610.3.7.1.9) on macOS 11.1 (20C69). It works fine on Chrome and Firefox on macOS. The error in the console is:

[Error] SyntaxError: Invalid regular expression: invalid group specifier name
	(anonymous function) (vendor.js:88)

I don’t know anything about vendor.js, but I’m guessing that some library implemented a regular expression that isn’t supported by WebKit (i.e., Safari): https://stackoverflow.com/questions/641407/javascript-negative-lookbehind-equivalent/50434875#50434875

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Dec 22, 2020

Fixed in 0.92.1

0reactions
domoritzcommented, Dec 22, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Works in Chrome, but breaks in Safari: Invalid regular ...
I had the same issue, and it turned out to be a RegEx expression in one of my dependencies, namely Discord.js . Luckily...
Read more >
Safari will not load React App. Invalid regular expression
The error concern "Invalid regular expression: invalid group specifier name". A google search revealed that Safari does not support all ...
Read more >
SyntaxError: invalid regular expression flag "x" - MDN Web Docs
The JavaScript exception "invalid regular expression flag" occurs when the flags in a regular expression contain any flag that is not one ...
Read more >
Regex works in chrome, but breaks in safari: invalid regular ...
[Solved] Regex works in chrome, but breaks in safari: invalid regular expression: invalid group specifier name - CodeProject.
Read more >
Angular SyntaxError - Apple Developer
Angular SyntaxError: SyntaxError: Invalid regular expression: invalid group specifier name.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found