]> source.dussan.org Git - jgit.git/commit
Fix multiple bugs in RawSubStringPattern used by MessageRevFilter 42/13242/2
authorRobin Stocker <robin@nibor.org>
Mon, 27 May 2013 18:56:31 +0000 (20:56 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 27 May 2013 23:40:13 +0000 (01:40 +0200)
commitec97912762754ee88f1af5ed80e993c545778242
treeb0b41b34f5e01a1b68e696ec62ab48cb9ed5a2a6
parent7bb2a1b8440386dead8b72c329b92e2473e89e32
Fix multiple bugs in RawSubStringPattern used by MessageRevFilter

* Match at end of input was not handled correctly.
* When more than one character matched but not all, the next character
  was not considered as a match start (e.g. pattern "abab" didn't match
  input "abaabab").

Bug: 409144
Change-Id: Ia44682c618bfbb927f5567c194227421d222a160
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/RawSubStringPatternTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java