diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-29 17:55:31 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-29 17:55:31 +0100 |
commit | 4dde2d9838ba3ae9e39aed9007716e5e782f244c (patch) | |
tree | 9e85f9cdeee5502902a202b958c6aeb4c3ae8d35 /grammar.js | |
parent | 4ed241343f6babdb0b954c683c1408345bbeed30 (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 'grammar.js')
-rw-r--r-- | grammar.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,6 +49,6 @@ module.exports = grammar({ attribute_name: $ => /[a-zA-Z0-9_-]+/, attribute_value: $ => /"(\\.|[^"\\])*"/, - _S: $ => /\p{White_Space}*/u, + _S: $ => /\p{White_Space}+/u, }, }) |