Explorar el Código

fix directive parser literal number arguments

Evan You hace 10 años
padre
commit
e8efd640db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/parsers/directive.js

+ 1 - 1
src/parsers/directive.js

@@ -43,7 +43,7 @@ function pushFilter () {
 function processFilterArg (arg) {
   if (reservedArgRE.test(arg)) {
     return {
-      value: arg,
+      value: _.toNumber(arg),
       dynamic: false
     }
   } else {