Closed yanbober closed 3 years ago
fix bug for #1525 #1508
windows file path 分隔符正则替换问题,由于 java 的 String replaceAll 方法第一个参数是正则表达式,故而要经过两次转义,一次Java、一次正则,所以原来直接File.separator在 windows 下存在兼容问题,修正为Matcher.quoteReplacement(File.separator)兼容。
File.separator
Matcher.quoteReplacement(File.separator)
fix bug for #1525 #1508
windows file path 分隔符正则替换问题,由于 java 的 String replaceAll 方法第一个参数是正则表达式,故而要经过两次转义,一次Java、一次正则,所以原来直接
File.separator
在 windows 下存在兼容问题,修正为Matcher.quoteReplacement(File.separator)
兼容。