}\r
\r
///Shall we ignore gaps????\r
- StringBuffer noGaps = new StringBuffer();\r
+ StringBuffer noGapsSB = new StringBuffer();\r
int insertCount = 0;\r
Vector spaces = new Vector();\r
\r
{\r
if (!jalview.util.Comparison.isGap(item.charAt(j)))\r
{\r
- noGaps.append(item.charAt(j));\r
+ noGapsSB.append(item.charAt(j));\r
spaces.add(new Integer(insertCount));\r
}\r
else\r
}\r
}\r
\r
+ String noGaps = noGapsSB.toString();\r
+\r
for (int r = resIndex; r < noGaps.length(); r++)\r
{\r
- if (regex.searchFrom(noGaps.toString(), r))\r
+\r
+ if (regex.searchFrom(noGaps, r))\r
{\r
resIndex = regex.matchedFrom();\r
\r
\r
r = resIndex;\r
}\r
+ else\r
+ {\r
+ break;\r
+ }\r
}\r
\r
if (!found)\r