Skip to content

Commit

Permalink
[tr064] Fixed wrong pattern to normalize phone numbers (openhab#10660)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
  • Loading branch information
cweitkamp authored and themillhousegroup committed May 10, 2021
1 parent 0c00eb9 commit 5b72339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ public String toString() {

private String normalizeNumber(String number) {
// Naive normalization: remove all non-digit characters
return number.replaceAll("[^0-9]\\+\\*", "");
return number.replaceAll("[^0-9\\*\\+]", "");
}
}

0 comments on commit 5b72339

Please sign in to comment.