Fix regex for +

This commit is contained in:
Clement Ho 2016-12-12 16:29:51 -06:00
parent 214b6495ca
commit f0935c4da5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {