[Rt-commit] rt branch, 4.0/non-greedy-extract-subject-tag, created. rt-4.0.10-29-gb68179c
Alex Vandiver
alexmv at bestpractical.com
Thu Feb 7 19:20:07 EST 2013
The branch, 4.0/non-greedy-extract-subject-tag has been created
at b68179cd8515cd9485afe7114e75ae0b41929145 (commit)
- Log -----------------------------------------------------------------
commit b68179cd8515cd9485afe7114e75ae0b41929145
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Feb 7 19:19:20 2013 -0500
Make subject tag be non-greedy, to not match all of "[comment] [foo #1]"
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 2d69b3b..161a166 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -455,7 +455,7 @@ accordingly.
=cut
-Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
+Set($ExtractSubjectTagMatch, qr/\[[^\]]+? #\d+\]/);
Set($ExtractSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
? qr/\[(?:${RT::EmailSubjectTagRegex}) #\d+\]/
: qr/\[\Q$RT::rtname\E #\d+\]/));
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list