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.

Unsupported regex for Dart in Safari

See original GitHub issue

monaco-editor version: 0.21.0 Browser: Safari Version 14.0 (15610.1.28.1.9, 15610) OS: MacOS Catalina

Hello team,

Hesitating to report this in vscode, but because vscode runs in a recent webkit not sure it’s an issue.

Some languages use unsupported regex that breaks Safari. dart for example.

You can reproduce by going to the playground and pick “dart” languages. It will throw an error in the console SyntaxError: Invalid regular expression: invalid group specifier name

Best Regards

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
shuxiaotaicommented, Dec 28, 2020

Fixed via microsoft/monaco-languages#121

Can you update the NPM package as soon as possible?

1reaction
alexdimacommented, Dec 24, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert Regex to be safari compliant - Stack Overflow
Question: How can I maintain this logic without using non Safari supported Regex using Dart. Code Example var regex = RegExp( ...
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 >
"regular expression" | Can I use... Support tables for ... - CanIUse
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
SyntaxError: unterminated string literal - JavaScript | MDN
The JavaScript error "unterminated string literal" occurs when there is an unterminated string literal somewhere. String literals must be enclosed by single ...
Read more >
RegExp class - dart:core library - Dart API
A regular expression pattern. Regular expressions are Patterns, and can as such be used to match strings or parts of strings. Dart regular...
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