JAL-4409 Allow more URI schemes (e.g. file) to be opened in Jalview
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 29 May 2024 15:25:34 +0000 (16:25 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 29 May 2024 15:25:34 +0000 (16:25 +0100)
src/jalview/bin/Commands.java

index eb81847..c4b532b 100644 (file)
@@ -270,7 +270,7 @@ public class Commands
          * @j2sIgnore
          */
         {
-          if (!HttpUtils.startsWithHttpOrHttps(openFile))
+          if (!HttpUtils.isPlausibleUri(openFile))
           {
             if (!(new File(openFile)).exists())
             {