Dylan Baker 7 anni fa
parent
commit
d746573773
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/lexer.js

+ 1
- 1
src/lexer.js Vedi File

@@ -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…
Annulla
Salva