Explorar o código

fix directive parser literal number arguments

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
e8efd640db
Modificáronse 1 ficheiros con 1 adicións e 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 {