From d1c7f79dd2c138afeb6527236a3fcca23b4a1cf3 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 24 Nov 2023 10:42:53 +0000 Subject: [PATCH] Correct fix for Windows line endings in wiki based tests --- plugins/tiddlywiki/jasmine/run-wiki-based-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js index 5f28db061..93c09c005 100644 --- a/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +++ b/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js @@ -51,7 +51,7 @@ describe("Wiki-based tests", function() { }); function readMultipleTiddlersTiddler(title) { - var rawTiddlers = $tw.wiki.getTiddlerText(title).split("\n+\n"); + var rawTiddlers = $tw.wiki.getTiddlerText(title).split(/\r?\n+\r?\n/mg); var tiddlers = []; $tw.utils.each(rawTiddlers,function(rawTiddler) { var fields = Object.create(null),