! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
little improvement for the Bugz regex pattern
Status:
CLOSED: FIXED
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Christoph 2009-12-11 12:41:21 CET
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!
Comment 1 Mike Massonnet editbugs 2009-12-12 19:32:46 CET
Hi Christoph, I applied the change into git. Thanks for the feedback, it's always much appreciated.

Bug #6069

Reported by:
Christoph
Reported on: 2009-12-11
Last modified on: 2012-04-09

People

Assignee:
Mike Massonnet
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information