[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-242-ge503d43

Alex M Vandiver alexmv at bestpractical.com
Mon Oct 5 13:09:33 EDT 2009


The branch, 3.8-trunk has been updated
       via  e503d439583c5a7e639dfa29ea6a76b5eb9a067d (commit)
      from  e009b7b62b8b82eb86d240404a6e17dddbcde4fb (commit)

Summary of changes:
 lib/RT/Test.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit e503d439583c5a7e639dfa29ea6a76b5eb9a067d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Oct 5 13:09:30 2009 -0400

    Fix capturing group in regex

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index a4d4b96..19d3b62 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1128,7 +1128,7 @@ sub process_in_file {
     my %args = ( in => undef, options => undef, @_ );
 
     my $text = $self->file_content( $args{'in'} );
-    while ( my ($opt) = ($text =~ /\%\%((?:.+?)\%\%/) ) {
+    while ( my ($opt) = ($text =~ /\%\%(.+?)\%\%/) ) {
         my $value = $args{'options'}{ lc $opt };
         die "no value for $opt" unless defined $value;
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list