[interchange-cvs] interchange - kwalsh modified lib/Vend/Parse.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Wed Oct 31 06:29:09 EST 2007
User: kwalsh
Date: 2007-10-31 11:29:09 GMT
Modified: lib/Vend Parse.pm
Log:
* UserTag aliases now allow names tags to be specified using hyphens
or underscores. Previously, only underscores were allowed.
This fixes a problem with the [shipping-description] alias, and will
help to avoid similar problems in the future.
Revision Changes Path
2.42 +3 -2 interchange/lib/Vend/Parse.pm
rev 2.42, prev_rev 2.41
Index: Parse.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Parse.pm,v
retrieving revision 2.41
retrieving revision 2.42
diff -u -r2.41 -r2.42
--- Parse.pm 21 Sep 2007 16:15:48 -0000 2.41
+++ Parse.pm 31 Oct 2007 11:29:09 -0000 2.42
@@ -1,6 +1,6 @@
# Vend::Parse - Parse Interchange tags
#
-# $Id: Parse.pm,v 2.41 2007/09/21 16:15:48 kwalsh Exp $
+# $Id: Parse.pm,v 2.42 2007/10/31 11:29:09 kwalsh Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -36,7 +36,7 @@
@ISA = qw(Exporter Vend::Parser);
-$VERSION = substr(q$Revision: 2.41 $, 10);
+$VERSION = substr(q$Revision: 2.42 $, 10);
@EXPORT = ();
@EXPORT_OK = qw(find_matching_end);
@@ -647,6 +647,7 @@
if(defined $Alias{$tag}) {
$aliasname = $tag;
my $alias = $Alias{$tag};
+ $alias =~ tr/-/_/;
$tag =~ s/_/[-_]/g;
#::logDebug("origtext: $origtext tag=$tag alias=$alias");
$origtext =~ s/$tag/$alias/i
More information about the interchange-cvs
mailing list