Skip to content

Commit

Permalink
fixed user names should be allowed to contain dashes and apostrophes
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jun 26, 2023
1 parent d401a47 commit 7accd8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion para-core/src/main/java/com/erudika/para/core/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,8 @@ public void setCreatorid(String creatorid) {

@Override
public final String getName() {
return Utils.stripAndTrim(CoreUtils.getInstance().getName(name, id));
return CoreUtils.getInstance().getName(name, id).replaceAll("[\\p{S}\\p{P}\\p{C}&&[^'-]]", "").
replaceAll("\\p{Z}+", " ").trim();
}

@Override
Expand Down

0 comments on commit 7accd8b

Please sign in to comment.