[tr064] Fixed wrong pattern to normalize phone numbers (#10660)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
41e24185c7
commit
50e7a44572
@ -93,6 +93,6 @@ public class Tr064PhonebookImpl implements Phonebook {
|
|||||||
|
|
||||||
private String normalizeNumber(String number) {
|
private String normalizeNumber(String number) {
|
||||||
// Naive normalization: remove all non-digit characters
|
// Naive normalization: remove all non-digit characters
|
||||||
return number.replaceAll("[^0-9]\\+\\*", "");
|
return number.replaceAll("[^0-9\\*\\+]", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user