summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2016-12-12 16:29:51 -0600
committerClement Ho <ClemMakesApps@gmail.com>2017-01-09 16:01:21 -0600
commitf0935c4da5bcd84fac51f7a0d61ee0c8d8181679 (patch)
tree8efe082066338d11134baa215b2ee68cdecbc8d9 /app
parent214b6495ca1853c9653a0ff109e0163dbc1d1cb6 (diff)
downloadgitlab-ce-f0935c4da5bcd84fac51f7a0d61ee0c8d8181679.tar.gz
Fix regex for +
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/filtered_search/filtered_search_manager.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
index e068b5d2ebf..a89627384e9 100644
--- a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
+++ b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
@@ -40,7 +40,7 @@
} else {
// Sanitize value since URL converts spaces into +
// Replace before decode so that we know what was originally + versus the encoded +
- const sanitizedValue = value ? decodeURIComponent(value.replace(/[+]/g, ' ')) : value;
+ const sanitizedValue = value ? decodeURIComponent(value.replace(/\+/g, ' ')) : value;
const match = gl.FilteredSearchTokenKeys.get().filter(t => key === `${t.key}_${t.param}`)[0];
if (match) {