aboutsummaryrefslogtreecommitdiff
path: root/src/grammar.json
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-29 17:55:31 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-10-29 17:55:31 +0100
commit4dde2d9838ba3ae9e39aed9007716e5e782f244c (patch)
tree9e85f9cdeee5502902a202b958c6aeb4c3ae8d35 /src/grammar.json
parent4ed241343f6babdb0b954c683c1408345bbeed30 (diff)
Make $._S pattern use ‘+’ instead of ‘*’v1.0.3
The previous pattern caused the parser to use infinite memory and eventually crash. Not good!
Diffstat (limited to 'src/grammar.json')
-rw-r--r--src/grammar.json2
1 files changed, 1 insertions, 1 deletions
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": [