diff --git a/src/main/java/com/cultural/heritage/utils/RegexUtils.java b/src/main/java/com/cultural/heritage/utils/RegexUtils.java index 567b426..433aeae 100644 --- a/src/main/java/com/cultural/heritage/utils/RegexUtils.java +++ b/src/main/java/com/cultural/heritage/utils/RegexUtils.java @@ -61,7 +61,7 @@ public class RegexUtils { * @param input * @return */ - public static String encodeUrl(String input) { return input.replaceAll("[^\\u4e00-\\u9fa5.]", "_"); } + public static String encodeUrl(String input) { return input.replaceAll("[^\\w\\u4e00-\\u9fa5.]", "_"); }