[Xfce4-commits] <midori:master> Fix speed dial regex causing dials other than 1-9 to be ignored when adding

Christian Dywan noreply at xfce.org
Sun Jul 11 23:50:01 CEST 2010


Updating branch refs/heads/master
         to df1f754a562c2fa4e6126ca6d01b826622be9e64 (commit)
       from 68c866325b1fefa7754c3aba9358a31d71222ab9 (commit)

commit df1f754a562c2fa4e6126ca6d01b826622be9e64
Author: Paweł Forysiuk <tuaxtor at o2.pl>
Date:   Tue Jul 6 02:09:15 2010 +0200

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

 midori/midori-browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index e421c54..60bf8b0 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))



More information about the Xfce4-commits mailing list