From 907ebb2a8d69a51e4f1648681dfc930a389b246c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 14 Sep 2021 17:01:57 +0100 Subject: [PATCH] JAL-3829 JAL-3855 ignore case when detecting alphafold ID --- src/jalview/ws/dbsources/EBIAlfaFold.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/dbsources/EBIAlfaFold.java b/src/jalview/ws/dbsources/EBIAlfaFold.java index b4cb614..a93f233 100644 --- a/src/jalview/ws/dbsources/EBIAlfaFold.java +++ b/src/jalview/ws/dbsources/EBIAlfaFold.java @@ -82,7 +82,9 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy @Override public Regex getAccessionValidator() { - return new Regex("(AF-[A-Z]+[0-9]+[A-Z0-9]+-F1)"); + Regex validator = new Regex("(AF-[A-Z]+[0-9]+[A-Z0-9]+-F1)"); + validator.setIgnoreCase(true); + return validator; } /* @@ -144,7 +146,7 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy try { - File tmpFile = File.createTempFile(id, "cif"); + File tmpFile = File.createTempFile(id, ".cif"); UrlDownloadClient.download(alphaFoldCif, tmpFile); // may not need this check ? -- 1.7.10.2