Skip to content

Commit a2b3fe9

Browse files
author
chenfeng
committed
修复REGEX匹配不完整情况
1 parent 4a728a4 commit a2b3fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-diff-test/src/main/java/me/codeleep/jsondiff/test/utils/FormatContent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @description: 格式化内容
1515
*/
1616
public class FormatContent {
17-
private static final String REGEX = "[a-zA-Z]+(\\.[a-zA-Z]+)+";
17+
private static final String REGEX = "[a-zA-Z]+(\\.[a-zA-Z0-9]+)+";
1818
private static final Pattern pattern = Pattern.compile(REGEX);
1919

2020
/**

0 commit comments

Comments
 (0)