JAL-1705 various refactoring towards Uniprot-to-Ensembl fetching
[jalview.git] / src / jalview / ext / ensembl / EnsemblSequenceFetcher.java
index 2e32bd2..67c5e63 100644 (file)
@@ -13,7 +13,8 @@ import com.stevesoft.pat.Regex;
 abstract class EnsemblSequenceFetcher extends DbSourceProxyImpl
 {
   // TODO modify to accept other species e.g. ENSMUSTnnn
-  private static final Regex ACCESSION_REGEX = new Regex("((ENSP|ENST|ENSG|CCDS)[0-9.]{3,})");
+  private static final Regex ACCESSION_REGEX = new Regex(
+          "(ENSP|ENST|ENSG|CCDS)[0-9.]{3,}$");
 
   /*
    * possible values for the 'feature' parameter of the /overlap REST service