can-route
Advanced tools
Comparing version 3.0.10 to 3.0.11
@@ -0,0 +0,0 @@ var stealTools = require("steal-tools"); |
@@ -337,2 +337,10 @@ /*jshint -W079 */ | ||
var decode = function(str){ | ||
try { | ||
return decodeURIComponent(str); | ||
} catch(ex) { | ||
return unescape(str); | ||
} | ||
}; | ||
/** | ||
@@ -532,3 +540,3 @@ * @static | ||
if (part && part !== querySeparator) { | ||
obj[route.names[i]] = decodeURIComponent(part); | ||
obj[route.names[i]] = decode(part); | ||
} | ||
@@ -535,0 +543,0 @@ }); |
@@ -0,0 +0,0 @@ @function can-route can-route |
{ | ||
"name": "can-route", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
@@ -0,0 +0,0 @@ # can-route |
@@ -0,0 +0,0 @@ @function can-route.data data |
@@ -0,0 +0,0 @@ var canRoute = require("can-route"); |
@@ -0,0 +0,0 @@ /* jshint asi:true */ |
@@ -99,2 +99,9 @@ /* jshint asi:true */ | ||
}, "default value and queryparams"); | ||
obj = canRoute.deparam("foo/%0g"); | ||
deepEqual(obj, { | ||
index: "%0g", | ||
page: "foo", | ||
route: ":page/:index" | ||
}, "can decode malformed urls"); | ||
}); | ||
@@ -101,0 +108,0 @@ |
require("./route-test"); | ||
require("./route-define-test"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
101422
2743