Standard Bugz pattern: /bug ?#?([0-9]+)/ My suggestion: /bug\s*#?\s*([0-9]+)/ Differences: Matched by the standard AND by my suggestion: "Bug #123", "Bug 123", "Bug123" (where the white space is an actual space character). NOT matched by the standard, but by my suggestion: "Bug # 123", "Bug[tab]#123", "Bug [tab]123", etc. Explanation: \s matches any kind of white space, \s* takes as much of it as there is (or nothing, if there's nothing). This is applied before and after the #. General remark: Thanks for the great feature!
Hi Christoph, I applied the change into git. Thanks for the feedback, it's always much appreciated.