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

Error parsing regular expression #4344

Closed
welovedesign opened this issue Nov 30, 2016 · 2 comments
Closed

Error parsing regular expression #4344

welovedesign opened this issue Nov 30, 2016 · 2 comments

Comments

@welovedesign
Copy link

Error: Parsing file /wireframes/node_modules/vue/dist/vue.common.js: Line 6278: Invalid regular expression

I get a parse error, these seem to be the offending lines.

var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
var regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g;

var buildRegex = cached(function (delimiters) {
  var open = delimiters[0].replace(regexEscapeRE, '\\$&');
  var close = delimiters[1].replace(regexEscapeRE, '\\$&');
  return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
});

@defcc
Copy link
Member

defcc commented Nov 30, 2016

Thanks @welovedesign , it seems that you set a custome delimiters, could you please provide more information about this issue ?

@yyx990803
Copy link
Member

Closing due to inactivity. Please open a new issue with a reference to this one if you can follow up with more information.

yyx990803 pushed a commit that referenced this issue Jan 5, 2017
* fiz regular expression

* fix regular expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants