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

Regex expression breaks syntax highlighting #81

Open
skattwood opened this issue Apr 20, 2016 · 2 comments
Open

Regex expression breaks syntax highlighting #81

skattwood opened this issue Apr 20, 2016 · 2 comments

Comments

@skattwood
Copy link

skattwood commented Apr 20, 2016

Here is some example code that breaks the syntax highlighting:

var str = "This is a \"quote\" test";
str.replace(/["]/g, '');
// Example function
function foo() {
  console.log("foo");
}
// Example function 2
function bar(arg) {
  console.log("bar");
}
str2 = "this is a test string";
foo();
bar();
@skattwood
Copy link
Author

syntax

@santisiri
Copy link

santisiri commented May 14, 2016

Same here with a simple regexp like this:

var regexp = /^[A-Za-z'-\s]+$/
return regexp.test(username);

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

2 participants