[Rt-commit] r6042 - rt/branches/3.6-RELEASE/html
ruz at bestpractical.com
ruz at bestpractical.com
Tue Sep 26 18:24:16 EDT 2006
Author: ruz
Date: Tue Sep 26 18:24:16 2006
New Revision: 6042
Modified:
rt/branches/3.6-RELEASE/html/autohandler
Log:
* parsing fails after merge, fix it
Modified: rt/branches/3.6-RELEASE/html/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/autohandler (original)
+++ rt/branches/3.6-RELEASE/html/autohandler Tue Sep 26 18:24:16 2006
@@ -94,9 +94,8 @@
foreach my $field ( keys %ARGS ) {
next unless $field =~ /^(.*)-TimeUnits$/i && $ARGS{$1};
my $local = $1;
- $ARGS{$local} =~ s|\b (?: (\d+) \s+ )? (\d+)/(\d+) \b
- |($1 || 0) + $3 ? $2 / $3 : 0
- |xe;
+ $ARGS{$local} =~ s{\b (?: (\d+) \s+ )? (\d+)/(\d+) \b}
+ {($1 || 0) + $3 ? $2 / $3 : 0}xe;
if ( $ARGS{$field} && $ARGS{$field} =~ /hours/i ) {
$ARGS{$local} *= 60;
}
More information about the Rt-commit
mailing list