File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/progistar/pXg/data/parser Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,8 @@ public int compare (String s1, String s2) {
243243 ArrayList <Integer > ptmStarts = new ArrayList <Integer >();
244244 ArrayList <Integer > ptmEnds = new ArrayList <Integer >();
245245 while (matcher .find ()) {
246- ptmStarts .add (matcher .regionStart ()); // inclusive
247- ptmEnds .add (matcher .regionEnd ()); // exclusive
246+ ptmStarts .add (matcher .start ()); // inclusive
247+ ptmEnds .add (matcher .end ()); // exclusive
248248 }
249249
250250
@@ -259,7 +259,7 @@ public int compare (String s1, String s2) {
259259 int s = ptmStarts .get (j );
260260 int e = ptmEnds .get (j );
261261
262- if (i <= s && i < e ) {
262+ if (s <= i && i < e ) {
263263 isPTMSite = true ;
264264 break ;
265265 }
@@ -296,4 +296,5 @@ public int compare (String s1, String s2) {
296296 }
297297
298298 }
299+
299300}
You can’t perform that action at this time.
0 commit comments