[svn-commits] tzafrir: tools/trunk r10101 - /tools/trunk/xpp/perl_modules/Dahdi/Span.pm

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 9 08:11:24 CDT 2011


Author: tzafrir
Date: Tue Aug  9 08:11:20 2011
New Revision: 10101

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10101
Log:
xpp: pri_termtype: match complete SPAN patterns

Match complete span patterns, to avoid pattern 'SPAN/1' from matching
e.g. span 12 (SPAN/12).

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    tools/trunk/xpp/perl_modules/Dahdi/Span.pm

Modified: tools/trunk/xpp/perl_modules/Dahdi/Span.pm
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/perl_modules/Dahdi/Span.pm?view=diff&rev=10101&r1=10100&r2=10101
==============================================================================
--- tools/trunk/xpp/perl_modules/Dahdi/Span.pm (original)
+++ tools/trunk/xpp/perl_modules/Dahdi/Span.pm Tue Aug  9 08:11:20 2011
@@ -368,7 +368,7 @@
 		#print STDERR "match: $match\n";
 		foreach my $pattern (@patlist) {
 			#print STDERR "testmatch: $pattern =~ $match\n";
-			if($pattern =~ $match) {
+			if($pattern =~ /^$match$/) {
 				#print STDERR "MATCH '$pattern' ~ '$match' termtype=$termtype\n";
 				$match_termtype = $termtype;
 				last SPEC;




More information about the svn-commits mailing list