]> spindle.queued.net Git - midori/commitdiff
Fix speed dial regex causing dials other than 1-9 to be ignored when adding
authorPaweł Forysiuk <tuaxtor@o2.pl>
Tue, 6 Jul 2010 00:09:15 +0000 (02:09 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 11 Jul 2010 21:40:52 +0000 (23:40 +0200)
midori/midori-browser.c

index e421c5408482b9bb0b82b658063a8a88816673b1..60bf8b09e9093b6e557048a82f9c30366a8c06e0 100644 (file)
@@ -1144,7 +1144,7 @@ midori_browser_speed_dial_get_next_free_slot (void)
     else
         g_file_get_contents (body_fname, &speed_dial_body, NULL, NULL);
 
-    regex = g_regex_new ("\"id\":\"(s[1-9])\",\"href\":\"#\"",
+    regex = g_regex_new ("\"id\":\"(s[0-9]{1,2})\",\"href\":\"#\"",
                          G_REGEX_MULTILINE, 0, NULL);
 
     if (g_regex_match (regex, speed_dial_body, 0, &match_info))