JAL-1694 bug fix for identifying/importing sequences containing angle brackets
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 21 Apr 2015 10:39:17 +0000 (11:39 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 21 Apr 2015 10:39:17 +0000 (11:39 +0100)
src/jalview/io/IdentifyFile.java

index beb1385..18b7d32 100755 (executable)
@@ -137,7 +137,7 @@ public class IdentifyFile
           break;
         }
 
-        if ((data.indexOf("<") > -1))
+        if (data.matches("<(?i)rnaml (\"[^\"]*\"|'[^']*'|[^'\">])*>"))
         {
           reply = "RNAML";