Skip to content

Commit 5c8fedc

Browse files
HHHindawyHossam Hindawy
andauthored
Fix filters regex to include spaces (#31)
Co-authored-by: Hossam Hindawy <hossam.hindawy@hossam.hindawy-Q7M9F6QK6G>
1 parent 28edb46 commit 5c8fedc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function parseUrlParameters() {
6363
searchResultsParameters.parameters.sortOrder = value;
6464
}
6565
// key is a filter
66-
const filterMatch = key.match(/filters\[(\w+)\]/);
66+
const filterMatch = key.match(/filters\[(.*?)\]/);
6767

6868
if (filterMatch?.length) {
6969
searchResultsParameters.parameters.filters[filterMatch?.[1]] = value.split(',');

0 commit comments

Comments
 (0)