Skip to content

Commit

Permalink
更新removeEscapeCharacter方法.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Jan 7, 2025
1 parent d851eab commit 30e509c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static boolean check(String value) {
* @param text 待处理字段
*/
public static String removeEscapeCharacter(String text) {
Objects.nonNull(text);
Objects.requireNonNull(text);
return text.replaceAll("\"", "").replaceAll("'", "");
}
}

0 comments on commit 30e509c

Please sign in to comment.