mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-07 02:21:24 +00:00
Fix the shrink_number to not remove the trailing '.'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -589,8 +589,12 @@ void ast_shrink_phone_number(char *n)
|
||||
if (bracketed)
|
||||
n[y++] = n[x];
|
||||
break;
|
||||
case '.':
|
||||
if (!n[x+1])
|
||||
n[y++] = n[x];
|
||||
break;
|
||||
default:
|
||||
if (!strchr("( ).", n[x]))
|
||||
if (!strchr("( )", n[x]))
|
||||
n[y++] = n[x];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user