From df1f754a562c2fa4e6126ca6d01b826622be9e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Forysiuk?= Date: Tue, 6 Jul 2010 02:09:15 +0200 Subject: [PATCH] Fix speed dial regex causing dials other than 1-9 to be ignored when adding --- midori/midori-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))