From 4dde2d9838ba3ae9e39aed9007716e5e782f244c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 29 Oct 2023 17:55:31 +0100 Subject: Make $._S pattern use ‘+’ instead of ‘*’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous pattern caused the parser to use infinite memory and eventually crash. Not good! --- src/grammar.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grammar.json') diff --git a/src/grammar.json b/src/grammar.json index ae2f4ab..960f0dd 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -196,7 +196,7 @@ }, "_S": { "type": "PATTERN", - "value": "\\p{White_Space}*" + "value": "\\p{White_Space}+" } }, "extras": [ -- cgit v1.2.3