From: hansonr Date: Thu, 9 May 2019 19:10:47 +0000 (-0500) Subject: Jalview-JS/JAL-3253-applet does not recognize \r\n as OK X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a17d89e1193d22cb05cd0f7605c7dc14564ede28;p=jalview.git Jalview-JS/JAL-3253-applet does not recognize \r\n as OK --- diff --git a/test/jalview/io/StockholmFileTest.java b/test/jalview/io/StockholmFileTest.java index e86c8ad..cdadf31 100644 --- a/test/jalview/io/StockholmFileTest.java +++ b/test/jalview/io/StockholmFileTest.java @@ -837,7 +837,8 @@ public class StockholmFileTest String stockholmFile = sf.print(alWithSpaces.getSequencesArray(), true); Pattern noSpacesInRnaSSAnnotation = Pattern .compile("\\n#=GC SS_cons\\s+\\S{14}\\n"); - Matcher m = noSpacesInRnaSSAnnotation.matcher(stockholmFile); + Matcher m = noSpacesInRnaSSAnnotation + .matcher(stockholmFile.replace("\r\n", "\n")); boolean matches = m.find(); Assert.assertTrue(matches, "StockholmFile output does not contain expected output (may contain spaces):\n"