From a8b639a64fed9f00954b7f3fea18b723a6283317 Mon Sep 17 00:00:00 2001 From: Mark Amery Date: Mon, 2 Sep 2024 19:57:16 +0100 Subject: [PATCH] Remove use of regex lookbehind to improve compat with old Safari versions (#550) --- 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(/(?