diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-12-12 16:29:51 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-09 16:01:21 -0600 |
commit | f0935c4da5bcd84fac51f7a0d61ee0c8d8181679 (patch) | |
tree | 8efe082066338d11134baa215b2ee68cdecbc8d9 /app | |
parent | 214b6495ca1853c9653a0ff109e0163dbc1d1cb6 (diff) | |
download | gitlab-ce-f0935c4da5bcd84fac51f7a0d61ee0c8d8181679.tar.gz |
Fix regex for +
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 | 2 |
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) { |