match case switch should work for both sequence ID matches and sequence matches,...
authorjprocter <Jim Procter>
Mon, 1 Dec 2008 11:11:20 +0000 (11:11 +0000)
committerjprocter <Jim Procter>
Mon, 1 Dec 2008 11:11:20 +0000 (11:11 +0000)
help/html/releases.html
src/jalview/analysis/Finder.java

index 3786fc3..20504cb 100755 (executable)
@@ -49,6 +49,7 @@
                <li>Sequences are now validated against EMBL database (broken in Version 2.4.0)</li>
                <li>Codons containing ambiguous nucleotides translated as 'X' in peptide product</li>
                <li>Sequence description lines properly shared via VAMSAS</li>
+               <li>Match case switch in find dialog box works for both sequence ID and sequence string and query strings do not have to be in upper case to match case-insensitively.</li>
                </ul>
                </td>
        
index 9f813b5..4e068c5 100644 (file)
@@ -68,6 +68,7 @@ public class Finder
       searchString = searchString.toUpperCase();
     }
     regex = new com.stevesoft.pat.Regex(searchString);
+    regex.setIgnoreCase(!caseSensitive);
     searchResults = new SearchResults();
     idMatch = new Vector();
     Sequence seq;
@@ -121,8 +122,6 @@ public class Finder
       }
 
       item = seq.getSequenceAsString();
-      if (!caseSensitive)
-        item = item.toUpperCase();
 
       if ((selection != null)
               && (selection.getEndRes() < alignment.getWidth() - 1))