From: Paweł Forysiuk Date: Tue, 6 Jul 2010 00:09:15 +0000 (+0200) Subject: Fix speed dial regex causing dials other than 1-9 to be ignored when adding X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1f754a562c2fa4e6126ca6d01b826622be9e64;p=midori Fix speed dial regex causing dials other than 1-9 to be ignored when adding --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index e421c540..60bf8b09 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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))