From 14250befc7ad9b82b380a1fb9389de6975d41d55 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 5 Jun 2010 10:27:43 -0400 Subject: Handle 'see ' The code that was supposed to handle 'See Mozilla bug http://bugzilla.mozilla.org/show_bug.cgi?...' as a cross reference was also detecting 'See https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC https://bugzilla.gnome.org/show_bug.cgi?id=614725' As a cross-reference. Fix by requiring the "intervening words" not to have a : or / in them, since "See " is clearly standalone and something with a : or a / in it is probably an URL. Reported by Adel Gadllah https://bugzilla.gnome.org/show_bug.cgi?id=619328 --- git-bz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bz b/git-bz index d5596c3..941b636 100755 --- a/git-bz +++ b/git-bz @@ -1686,7 +1686,7 @@ def edit_bug(bug, applied_commits=None, fix_commits=None): return True LOG_BUG_REFERENCE = re.compile(r""" -(\b[Ss]ee\s+(?:\S+\s+){0,2})? +(\b[Ss]ee\s+(?:[^\s:/]+\s+){0,2})? (?:(https?://[^/]+/show_bug.cgi\?id=[^&\s]+) | [Bb]ug\s+\#?(\d+)) -- cgit v1.2.3