From 45fbc182cef0182441cd070f55db34c94cf83a13 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Sat, 14 Oct 2017 04:06:44 +0200
Subject: [PATCH] Allows users to input escaped values in quotes

---
 res/js/util/statehandler.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/res/js/util/statehandler.js b/res/js/util/statehandler.js
index 0e5e268..eef9109 100644
--- a/res/js/util/statehandler.js
+++ b/res/js/util/statehandler.js
@@ -47,7 +47,7 @@ class StateHandler extends Component {
         }
 
         let query = [];
-        const words = this.state.split(" ");
+        const words = this.state.match(/"[^"]+"|\S+/g);
         words.forEach((word) => {
             const parts = split(word, ":", 2);
             console.log(parts);
-- 
GitLab