Skip to content

Commit 5cc2cf4

Browse files
committed
corrected word splitter in DiffRowGenerator
1 parent 9039825 commit 5cc2cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-diff-utils/src/main/java/com/github/difflib/text/DiffRowGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public final class DiffRowGenerator {
6767
return list;
6868
};
6969

70-
public static final Pattern SPLIT_BY_WORD_PATTERN = Pattern.compile("\\s+|[,.\\[\\](){}/\\\\*+\\-#]");
70+
public static final Pattern SPLIT_BY_WORD_PATTERN = Pattern.compile("\\s+|[,.\\[\\](){}/\\\\*+\\-#<>;:&\\']+");
7171

7272
/**
7373
* Splitting lines by word to achieve word by word diff checking.

0 commit comments

Comments
 (0)