small optimisation/fix todo

This commit is contained in:
Luke Page
2014-08-25 12:25:54 +01:00
parent 41732cc60b
commit 16c4f88b7f

View File

@@ -1679,7 +1679,7 @@ var Parser = function Parser(env) {
}
}
if ((name.length > 1) && match(/^\s*((?:\+_|\+)?)\s*:/)) { //TODO remove start \s* - un-necessary
if ((name.length > 1) && match(/^((?:\+_|\+)?)\s*:/)) {
parserInput.forget();
// at last, we have the complete match now. move forward,