From 2ee4d8553b04932ceca7789ab9467714c792d1f4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 1 Dec 2008 11:11:20 +0000 Subject: [PATCH] match case switch should work for both sequence ID matches and sequence matches, and be case insensitive for both searched text and query text! --- help/html/releases.html | 1 + src/jalview/analysis/Finder.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/help/html/releases.html b/help/html/releases.html index 3786fc3..20504cb 100755 --- a/help/html/releases.html +++ b/help/html/releases.html @@ -49,6 +49,7 @@
  • Sequences are now validated against EMBL database (broken in Version 2.4.0)
  • Codons containing ambiguous nucleotides translated as 'X' in peptide product
  • Sequence description lines properly shared via VAMSAS
  • +
  • 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.
  • diff --git a/src/jalview/analysis/Finder.java b/src/jalview/analysis/Finder.java index 9f813b5..4e068c5 100644 --- a/src/jalview/analysis/Finder.java +++ b/src/jalview/analysis/Finder.java @@ -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)) -- 1.7.10.2