|
|
@ -6,6 +6,9 @@ import java.util.HashSet;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Set;
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
import java.util.regex.Matcher;
|
|
|
|
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.util.AntPathMatcher;
|
|
|
|
import org.springframework.util.AntPathMatcher;
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
import com.ruoyi.common.core.text.StrFormatter;
|
|
|
|
import com.ruoyi.common.core.text.StrFormatter;
|
|
|
@ -580,4 +583,14 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return sb.toString();
|
|
|
|
return sb.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String replaceBlank(String str) {
|
|
|
|
|
|
|
|
String dest = "";
|
|
|
|
|
|
|
|
if (str!=null) {
|
|
|
|
|
|
|
|
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
|
|
|
|
|
|
|
|
Matcher m = p.matcher(str);
|
|
|
|
|
|
|
|
dest = m.replaceAll("");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return dest;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|