From 65ce792bdb6ee34ed5569673d4230424f165da68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Ostroz=CC=8Cli=CC=81k?= Date: Mon, 11 Jan 2016 13:50:27 +0100 Subject: [PATCH] [#586] Fixed bug with regularizing white spacing --- frontend/src/common/parseQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/common/parseQuery.ts b/frontend/src/common/parseQuery.ts index d4495ffa2..319a81f38 100644 --- a/frontend/src/common/parseQuery.ts +++ b/frontend/src/common/parseQuery.ts @@ -5,7 +5,7 @@ export default function parseQuery(query: string) { // Regularize white spacing // Make in-between white spaces a unique space - query = query.trim().replace(/s+/g, ' '); + query = query.trim().replace(/\s+/g, ' '); // https://regex101.com/r/wT6zG3/2 const regex = /(-)?(?:(\S+):)?(?:'((?:[^'\\]|\\.)*)'|"((?:[^"\\]|\\.)*)"|(\S+))/g;