diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-22 16:32:37 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-22 16:32:37 -0400 |
commit | 2853ea6781855edb3d298710a14ce2161fc98c1a (patch) | |
tree | b7cd7cf05cc10887cc588a27b3b986c0d0a552da | |
parent | 384d04c119b6a4e7731e66699be4ec2b3c78f165 (diff) |
handle EOF in strings
-rw-r--r-- | json.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -183,6 +183,9 @@ _json_string() { "$_json_token" "$1" "$_json_strval" return ;; + '' ) + _json_error 'unexpected EOF in string' + ;; * ) # Consume multiple characters at once, # or else this is horribly slow. |