From a17d89e1193d22cb05cd0f7605c7dc14564ede28 Mon Sep 17 00:00:00 2001 From: hansonr Date: Thu, 9 May 2019 14:10:47 -0500 Subject: [PATCH] Jalview-JS/JAL-3253-applet does not recognize \r\n as OK --- test/jalview/io/StockholmFileTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 1.7.10.2