Dylan Baker пре 7 година
родитељ
комит
d746573773
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/lexer.js

+ 1
- 1
src/lexer.js Прегледај датотеку

@@ -27,7 +27,7 @@ module.exports = class Lexer {
27 27
         })
28 28
         pos++
29 29
       } else if (source[pos].match(/:/)) {
30
-        let value = /:([^()'"\s]+)/.exec(source)[1].trim()
30
+        let value = /:([^()'"\s]+)/.exec(source.slice(pos))[1].trim()
31 31
         tokens.push({
32 32
           type: tokenTypes.ATTRIBUTE,
33 33
           line: line,

Loading…
Откажи
Сачувај