more punctuation in the regex

This commit is contained in:
Brian S. Stephan 2010-10-28 20:08:30 -05:00
parent 5dda9ac1e5
commit 352b9e1830

View File

@ -33,7 +33,7 @@ class Karma(Module):
Module.__init__(self, config, server, modlist) Module.__init__(self, config, server, modlist)
pattern = "(?:([a-zA-Z0-9_']+)|\(([a-zA-Z0-9_' ]+)\))" pattern = "(?:([a-zA-Z0-9_'.,]+)|\(([a-zA-Z0-9_'., ]+)\))"
karmapattern = '^' + pattern + '(\+\+|--)' karmapattern = '^' + pattern + '(\+\+|--)'
querypattern = '^!rank\s+(.*)' querypattern = '^!rank\s+(.*)'