Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "nyks", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,3 @@ "use strict"; | ||
var startsWith = require('mout/string/startsWith'); | ||
var isFinite = require('mout/lang/isFinite'); | ||
var isArray = require('mout/lang/isArray'); | ||
@@ -25,2 +26,4 @@ | ||
if(isFinite(v)) | ||
v = parseFloat(v); | ||
@@ -27,0 +30,0 @@ if(dict[k] !== undefined) { |
"use strict"; | ||
var isFinite = require('mout/lang/isFinite'); | ||
module.exports = function(str) { | ||
@@ -17,2 +19,6 @@ var mask = "(\\s+)|([^\\s\\\"']+)|\\\"([^\\\"]*)\\\"|'([^']*)'"; | ||
if(isFinite(value)) | ||
value = parseFloat(value); | ||
args.push(value); | ||
@@ -19,0 +25,0 @@ } |
@@ -36,3 +36,3 @@ "use strict"; | ||
expect(splitArgs("a \"'b c'\" c d") ).to.eql(["a", "'b c'", "c", "d"]); | ||
expect(splitArgs("a 'b c' c d") ).to.eql(["a", "b c", "c", "d"]); | ||
expect(splitArgs("a 'b c' c d 8") ).to.eql(["a", "b c", "c", "d", 8]); | ||
expect(splitArgs("") ).to.eql([]); | ||
@@ -39,0 +39,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34948
917