Skip to content

Commit

Permalink
fix($urlMatcherFactory): empty string policy now respected in Param.v…
Browse files Browse the repository at this point in the history
…alue()
  • Loading branch information
christopherthielen committed Nov 9, 2014
1 parent 3045e41 commit db12c85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/urlMatcherFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ function $UrlMatcherFactory() {
* default value, which may be the result of an injectable function.
*/
function $value(value) {
if (value === "") value = self.emptyString;
return isDefined(value) ? self.type.decode(value) : $$getDefaultValue();
}

Expand Down

0 comments on commit db12c85

Please sign in to comment.