diff --git a/packages/pug-lexer/index.js b/packages/pug-lexer/index.js index d2d1e11d6..b4894a27b 100644 --- a/packages/pug-lexer/index.js +++ b/packages/pug-lexer/index.js @@ -1087,7 +1087,7 @@ Lexer.prototype = { eachOf: function() { var captures; - if ((captures = /^(?:each|for) (.*?) of *([^\n]+)/.exec(this.input))) { + if ((captures = /^(?:each|for) (.*?) of +([^\n]+)/.exec(this.input))) { this.consume(captures[0].length); var tok = this.tok('eachOf', captures[1]); tok.value = captures[1];