问题描述
Uncaught SyntaxError: Invalid regular expression: /^(?:[\d]+|me$/: Unterminated group
我在文件 route-tree.js 中找到了这个
// A level's validate method is called to check whether a value being set
// on the request URL is of the proper type for the location in which it
// is specified. If a group pattern was found,the validator checks whether
// the input string exactly matches the group pattern.
var groupPatternRE = groupPattern === '' ?
// If groupPattern is an empty string,accept any input without validation
/.*/ :
// Otherwise,validate against the group pattern or the component string
new RegExp( groupPattern ? '^' + groupPattern + '$' : component,'i' );
如何从 route-tree.js 解决这个问题。因为如果我删除了 groupPattern ? '^' + groupPattern + '$' : component,'i'
,它就可以工作。那么我该如何解决这个问题?
提前致谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)