Allow tabs as delimiters in 'set' commands
authorUli Schlachter <psychon@znc.in>
Tue, 26 May 2009 16:05:27 +0000 (18:05 +0200)
committerUli Schlachter <psychon@znc.in>
Thu, 28 May 2009 09:51:46 +0000 (11:51 +0200)
Signed-off-by: Uli Schlachter <psychon@znc.in>

uzbl.c

diff --git a/uzbl.c b/uzbl.c
index 02a3dd0..5a96d2b 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -1163,7 +1163,7 @@ static void
 setup_regex() {
     uzbl.comm.get_regex  = g_regex_new("^[Gg][a-zA-Z]*\\s+([^ \\n]+)$",
             G_REGEX_OPTIMIZE, 0, NULL);
-    uzbl.comm.set_regex  = g_regex_new("^[Ss][a-zA-Z]*\\s+([^ ]+)\\s*=\\s*([^\\n].*)$",
+    uzbl.comm.set_regex  = g_regex_new("^[Ss][a-zA-Z]*\\s+([^ \\t]+)\\s*=\\s*([^\\n].*)$",
             G_REGEX_OPTIMIZE, 0, NULL);
     uzbl.comm.bind_regex = g_regex_new("^[Bb][a-zA-Z]*\\s+?(.*[^ ])\\s*?=\\s*([a-z][^\\n].+)$",
             G_REGEX_UNGREEDY|G_REGEX_OPTIMIZE, 0, NULL);