Skip to content

Commit 044cd5b

Browse files
committed
Fix bugSnarfer regex so that it matches issue123 as well as issue 123 and issue#123
1 parent cc84f63 commit 044cd5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def query(self, irc, msg, args, options, query_string):
791791
query = wrap(query, [getopts({'total' : '', 'install' : 'something'}), 'text'])
792792

793793
def snarfBug(self, irc, msg, match):
794-
r"""\b((?P<install>\w+)\b\s*)?(?P<type>bug|issue|attachment|file)\b[\s#]*(?P<id>\d+)"""
794+
r"""\b((?P<install>\w+)\b\s*)?(?P<type>bug|issue|attachment|file)(\b[\s#]*|\B)(?P<id>\d+)"""
795795
channel = msg.args[0]
796796
if not self.registryValue('bugSnarfer', channel): return
797797

0 commit comments

Comments
 (0)