From efda7355e64a40c23d5f745e0829000c15298304 Mon Sep 17 00:00:00 2001 From: Mark Amery Date: Mon, 2 Sep 2024 19:56:36 +0100 Subject: [PATCH] Remove use of regex lookbehind to improve compat with old Safari versions --- src/util/string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/string.js b/src/util/string.js index 7230a5fe..53cb7089 100644 --- a/src/util/string.js +++ b/src/util/string.js @@ -92,7 +92,7 @@ function overlapCount(a, b) { * Returns true if the string consistently uses Windows line endings. */ export function hasOnlyWinLineEndings(string) { - return string.includes('\r\n') && !string.match(/(?