aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 6ea5d1ad..5de57075 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -875,7 +875,7 @@ function encodeUriQuery(val, pctEncodeSpaces) {
replace(/%3A/gi, ':').
replace(/%24/g, '$').
replace(/%2C/gi, ',').
- replace((pctEncodeSpaces ? null : /%20/g), '+');
+ replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
}