Fix speed dial regex causing dials other than 1-9 to be ignored when adding

This commit is contained in:
Paweł Forysiuk 2010-07-06 02:09:15 +02:00 committed by Christian Dywan
parent 68c866325b
commit df1f754a56

View 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))