1
zyy
2025-09-15 b08c3ca89f463f5a6775d77107d91cadce8bdf05
src/main/java/com/nq/utils/StringUtils.java
@@ -76,6 +76,12 @@
        return htmlStr.trim(); //返迴文本字符串
    }
    public static String trim(String str){
        if (str == null || str.isEmpty()) {
            return str;
        }
        return str.replaceAll("^[\\s\u3000]+|[\\s\u3000]+$", "");
    }
}