diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-06-05 10:27:43 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-06-05 10:32:04 -0400 |
commit | 14250befc7ad9b82b380a1fb9389de6975d41d55 (patch) | |
tree | 4fa74d037d682c701e22d56962f177a1fad404e3 | |
parent | 2ad51d78025a141d455e5bf8b3c2acee451156ad (diff) |
Handle 'see <url> <bug reference>'
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 <url>" 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
-rwxr-xr-x | git-bz | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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+)) |