Non-capturing regex, don't catch some exceptions

Auditors: alpert
This commit is contained in:
Emily Eisenberg
2013-07-13 20:55:35 -07:00
parent a831e94a51
commit ed82784cba
2 changed files with 7 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ var normals = [
];
// Build a regex to easily parse the functions
var anyFunc = /^\\([a-zA-Z]+|.)/;
var anyFunc = /^\\(?:[a-zA-Z]+|.)/;
// Lex a single token
Lexer.prototype.lex = function(pos) {