summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2021-06-18 10:07:45 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2021-06-18 10:07:45 +0200
commitd67536e610933dce65d05fb4fb5dc5eeb032f803 (patch)
tree752dc17ac94385a8e1596021b032ce30f690e2e7 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parentdae37a49b24a1ef1aa51580f926103a512218779 (diff)
downloadpdf-over-d67536e610933dce65d05fb4fb5dc5eeb032f803.tar.gz
pdf-over-d67536e610933dce65d05fb4fb5dc5eeb032f803.tar.bz2
pdf-over-d67536e610933dce65d05fb4fb5dc5eeb032f803.zip
trim phone number whitespaces
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHelper.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHelper.java
index 9971e3c2..5f2287ea 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHelper.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHelper.java
@@ -209,6 +209,7 @@ public class MobileBKUHelper {
throws InvalidNumberException {
// Verify number and normalize
+ number = number.trim();
// Compile and use regular expression
Pattern pattern = Pattern.compile(NUMBER_REGEX);
Matcher matcher = pattern.matcher(number);