Skip to content

Commit

Permalink
'#1880: Trim whitespace (usually not present, may appear in recovered).
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite authored and lfcnassif committed Oct 4, 2023
1 parent 94bdfea commit 657e4e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class WAContact {
public WAContact(String id) {
if (id != null) {
String[] idSplit = id.split("@", 2);
this.id = idSplit[0];
this.suffix = idSplit.length > 1 ? idSplit[1] : "";
this.id = idSplit[0].trim();
this.suffix = idSplit.length > 1 ? idSplit[1].trim() : "";
} else {
this.id = this.suffix = "";
}
Expand Down

0 comments on commit 657e4e5

Please sign in to comment.