We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38704fd commit 0b90362Copy full SHA for 0b90362
src/urlMatcherFactory.js
@@ -579,7 +579,7 @@ function $UrlMatcherFactory() {
579
decode: valFromString,
580
// TODO: in 1.0, make string .is() return false if value is undefined/null by default.
581
// In 0.2.x, string params are optional by default for backwards compat
582
- is: function(val) { return (val == null || !isDefined(val) || typeof val === "string") && (val.toString().indexOf(slashReplacement) === -1); },
+ is: function(val) { return val == null || !isDefined(val) || (isString(val) && val.indexOf(slashReplacement) === -1); },
583
pattern: /[^/]*/
584
},
585
int: {
0 commit comments