JAL-2994 put ‘\’ first in character class clause of regex - otherwise doesn’t compile...
authorJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:16:20 +0000 (11:16 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:16:20 +0000 (11:16 +0100)
test/jalview/util/FileUtilsTest.java

index 07fd375..909d0c8 100644 (file)
@@ -24,7 +24,7 @@ public class FileUtilsTest
 
     List<String> matches = FileUtils
             .findMatchingPaths(Paths.get(".."),
-            ".*[/\\\\]plant.*\\.f.*");
+                    ".*[\\\\/]plant.*\\.f.*");
     System.out.println(matches);
     assertTrue(matches.contains(expect1));
     assertTrue(matches.contains(expect2));