We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba077aa commit 61728d7Copy full SHA for 61728d7
src/urlMatcherFactory.js
@@ -610,7 +610,7 @@ function $UrlMatcherFactory() {
610
"int": {
611
encode: valToString,
612
decode: function(val) { return parseInt(val, 10); },
613
- is: function(val) { return isDefined(val) && this.decode(val.toString()) === val; },
+ is: function(val) { return val !== undefined && val !== null && this.decode(val.toString()) === val; },
614
pattern: /\d+/
615
},
616
"bool": {
0 commit comments