JAL-1965 fencepost patch makes wordSplit test pass

authorJim Procter <jprocter@issues.jalview.org>
Fri, 13 Nov 2015 14:50:20 +0000 (14:50 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 13 Nov 2015 14:50:20 +0000 (14:50 +0000)
src/jalview/analysis/SequenceIdMatcher.java

index c0981a1..a5c161c 100755 (executable)
@@ -190,7 +190,7 @@ public class SequenceIdMatcher
           if (m > 0 && m - p > 5)
           {
             // split to end of word m with this delimiter
-            keys.add(new SeqIdName(name.substring(p, m - 1) + limits));
+            keys.add(new SeqIdName(name.substring(p, m) + limits));
           }
           if (namel - m > 5)
           {