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:
Mark Spencer
2004-10-22 13:08:35 +00:00
parent 898a67b80e
commit e5091a2b33

View File

@@ -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];
}
}