From: ivan Date: Wed, 10 Aug 2011 05:39:39 +0000 (+0000) Subject: more forgiving DID selector with odd things in phone_avail.name, RT#13921 X-Git-Tag: freeside_2_3_1~344 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a01fe98d067da452cfcbafb2051bb7f85ba4f7b5 more forgiving DID selector with odd things in phone_avail.name, RT#13921 --- 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; }