Skip to content

Commit

Permalink
LabelFact: Use strip() to handle non-ASCII whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-lorentz committed Dec 8, 2023
1 parent 65681f5 commit 24a08cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public String getId() {

public String getNormalizedId() {
String id = label.getId();
return id.trim().toLowerCase().replaceAll("[-_\\.]", "");
return id.strip().toLowerCase().replaceAll("[-_\\.]", "");
}

@Override
Expand Down

0 comments on commit 24a08cf

Please sign in to comment.