Skip to content

Conversation

RemHero
Copy link
Contributor

@RemHero RemHero commented Jan 3, 2023

No description provided.

@RemHero RemHero requested review from zhuyuqing and Cauchy-NY January 5, 2023 03:47
@RemHero RemHero requested review from SolomonAnn and iznauy January 8, 2023 07:16
}

public static boolean isContainSpecialChar(String str) {
String regEx = "[`~!@#$%^&()+=|{}':;',<>?~!@#¥%……&()+|{}【】‘;:”“’。,、?]|\n|\r|\t";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reduce this set to the smallest one, in accordance with SQL syntactics.

Copy link
Collaborator

@zhuyuqing zhuyuqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the special char definition

}

public static boolean isContainSpecialChar(String str) {
String regEx = "[~!@#$%&()+=|{}':;',<>?~]|\r|\n|\t|[\u2E80-\u9FFF]";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Chinese characters are not allowed? Please fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants