From a01fe98d067da452cfcbafb2051bb7f85ba4f7b5 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 10 Aug 2011 05:39:39 +0000 Subject: [PATCH] more forgiving DID selector with odd things in phone_avail.name, RT#13921 --- httemplate/misc/phonenums.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httemplate/misc/phonenums.cgi b/httemplate/misc/phonenums.cgi index 784a19016..fd5de2ae6 100644 --- a/httemplate/misc/phonenums.cgi +++ b/httemplate/misc/phonenums.cgi @@ -22,7 +22,8 @@ if ( $exchangestring ) { if ( $exchangestring eq 'tollfree' ) { $opts{'tollfree'} = 1; } - elsif ( $exchangestring =~ /^([\w\s]+), ([A-Z][A-Z])$/ ) { + #elsif ( $exchangestring =~ /^([\w\s\:\,\(\)\-]+), ([A-Z][A-Z])$/ ) { + elsif ( $exchangestring =~ /^(.+), ([A-Z][A-Z])$/ ) { $opts{'ratecenter'} = $1; $opts{'state'} = $2; } -- 2.11.0