From: Jim Procter Date: Thu, 2 Aug 2018 10:16:20 +0000 (+0100) Subject: JAL-2994 put ‘\’ first in character class clause of regex - otherwise doesn’t compile... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c39137ea1057fea32d65471a12855a68d00365d5;p=jalview.git JAL-2994 put ‘\’ first in character class clause of regex - otherwise doesn’t compile with error ‘Unterminated character class’ --- diff --git a/test/jalview/util/FileUtilsTest.java b/test/jalview/util/FileUtilsTest.java index 07fd375..909d0c8 100644 --- a/test/jalview/util/FileUtilsTest.java +++ b/test/jalview/util/FileUtilsTest.java @@ -24,7 +24,7 @@ public class FileUtilsTest List matches = FileUtils .findMatchingPaths(Paths.get(".."), - ".*[/\\\\]plant.*\\.f.*"); + ".*[\\\\/]plant.*\\.f.*"); System.out.println(matches); assertTrue(matches.contains(expect1)); assertTrue(matches.contains(expect2));