]> git.basschouten.com Git - openhab-addons.git/commitdiff
[tr064] Fixed wrong pattern to normalize phone numbers (#10660)
authorChristoph Weitkamp <github@christophweitkamp.de>
Sun, 9 May 2021 18:41:45 +0000 (20:41 +0200)
committerGitHub <noreply@github.com>
Sun, 9 May 2021 18:41:45 +0000 (20:41 +0200)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/phonebook/Tr064PhonebookImpl.java

index 43ad0ab78798ba2131d8652c5a56a52fd2af5d9c..15709329ed95ef463f3cf17e8c50c09993a7c110 100644 (file)
@@ -93,6 +93,6 @@ public class Tr064PhonebookImpl implements Phonebook {
 
     private String normalizeNumber(String number) {
         // Naive normalization: remove all non-digit characters
-        return number.replaceAll("[^0-9]\\+\\*", "");
+        return number.replaceAll("[^0-9\\*\\+]", "");
     }
 }