diff --git a/README.md b/README.md index c3c335a..ce9eb51 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,9 @@ This is a test ~senctence~**for diffutils**. But it can easily replaced by any other which is better for handing your texts. I have plan to add implementation of some in future. ### Changelog ### + * Version 4.1-SNAPSHOT + * preview of new Unified Diff Reader / Writer. This is not yet feature complete but passes the + tests of the old version. * Version 4.0-SNAPSHOT * moved to organisation **java-diff-utils** * changed groupid to **io.github.java-diff-utils** and artifact id to **java-diff-utils** diff --git a/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java b/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java index ba4966d..7adccbf 100644 --- a/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java +++ b/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java @@ -68,7 +68,7 @@ public final class UnifiedDiffReader { String tailTxt = ""; while (READER.ready()) { String line = READER.readLine(); - if (line.equals("--")) { + if (line.matches("--\\s*")) { break; } else { LOG.log(Level.INFO, "parsing line {0}", line);