Skip to content

Commit

Permalink
[#586] Fixed bug with regularizing white spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
vasek committed Jan 11, 2016
1 parent 9616b54 commit 65ce792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/common/parseQuery.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 65ce792

Please sign in to comment.