From 24f45c5d2c445955f60dfd64375fc33d6d2cf2fe Mon Sep 17 00:00:00 2001 From: Christoph Weitkamp Date: Sun, 9 May 2021 13:27:58 +0200 Subject: [PATCH] Fixed wrong pattern to normalize phone numbers Signed-off-by: Christoph Weitkamp --- .../binding/tr064/internal/phonebook/Tr064PhonebookImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/phonebook/Tr064PhonebookImpl.java b/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/phonebook/Tr064PhonebookImpl.java index 43ad0ab78798b..15709329ed95e 100644 --- a/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/phonebook/Tr064PhonebookImpl.java +++ b/bundles/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/phonebook/Tr064PhonebookImpl.java @@ -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\\*\\+]", ""); } }