Fix regex for +
This commit is contained in:
parent
214b6495ca
commit
f0935c4da5
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
||||||
} else {
|
} else {
|
||||||
// Sanitize value since URL converts spaces into +
|
// Sanitize value since URL converts spaces into +
|
||||||
// Replace before decode so that we know what was originally + versus the encoded +
|
// 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];
|
const match = gl.FilteredSearchTokenKeys.get().filter(t => key === `${t.key}_${t.param}`)[0];
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|
Loading…
Reference in a new issue