Skip to content
Snippets Groups Projects
Commit a41dfb83 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

removing spaces from phone number

parent 7eee556d
No related branches found
No related tags found
1 merge request!12Duplicates removal
...@@ -110,7 +110,7 @@ public class LihControlParser extends SubjectParser { ...@@ -110,7 +110,7 @@ public class LihControlParser extends SubjectParser {
} else if (zipCode.startsWith("F")){ } else if (zipCode.startsWith("F")){
return "France"; return "France";
} else if (zipCode.startsWith("B")){ } else if (zipCode.startsWith("B")){
return "Belgium"; return "Belgique";
} }
} }
return ""; return "";
......
...@@ -290,7 +290,7 @@ public class Subject { ...@@ -290,7 +290,7 @@ public class Subject {
if (phone1 != null && phone1.length() > 20) { if (phone1 != null && phone1.length() > 20) {
logger.warn("Invalid phone. Ignoring: " + phone1); logger.warn("Invalid phone. Ignoring: " + phone1);
} else if (phone1 != null) { } else if (phone1 != null) {
this.phone1 = phone1.replace(",", ""); this.phone1 = phone1.replace(",", "").replace(" ", "");
} }
} }
...@@ -311,7 +311,7 @@ public class Subject { ...@@ -311,7 +311,7 @@ public class Subject {
if (phone2 != null && phone2.length() > 20) { if (phone2 != null && phone2.length() > 20) {
logger.warn("Invalid phone. Ignoring: " + phone2); logger.warn("Invalid phone. Ignoring: " + phone2);
} else if (phone2 != null) { } else if (phone2 != null) {
this.phone2 = phone2.replace(",", ""); this.phone2 = phone2.replace(",", "").replace(" ", "");
} }
} }
...@@ -332,7 +332,7 @@ public class Subject { ...@@ -332,7 +332,7 @@ public class Subject {
if (phone3 != null && phone3.length() > 20) { if (phone3 != null && phone3.length() > 20) {
logger.warn("Invalid phone. Ignoring: " + phone3); logger.warn("Invalid phone. Ignoring: " + phone3);
} else if (phone3 != null) { } else if (phone3 != null) {
this.phone3 = phone3.replace(",", ""); this.phone3 = phone3.replace(",", "").replace(" ", "");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment