[Pkg-voip-commits] [dahdi-tools] 39/285: xpp: pri_termtype: match complete SPAN patterns

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 2061c6c359992b6aadbe942d6800fee6f1c1889f
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Tue Aug 9 13:11:20 2011 +0000

    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>
    
    git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10101 17933a7a-c749-41c5-a318-cba88f637d49
---
 xpp/perl_modules/Dahdi/Span.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpp/perl_modules/Dahdi/Span.pm b/xpp/perl_modules/Dahdi/Span.pm
index 4e63af4..cf38c80 100644
--- a/xpp/perl_modules/Dahdi/Span.pm
+++ b/xpp/perl_modules/Dahdi/Span.pm
@@ -368,7 +368,7 @@ SPEC:
 		#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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list