diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 12:51:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 12:51:19 -0400 |
| commit | 639d5ddfca562e5b3645955551be244b5e8ca9c6 (patch) | |
| tree | 2a2fba7b2d442b5cf7e9dd2e1f876e4f799a6bdf /lib | |
| parent | 0a7062e2d711b5ac7fb71e873f293a8f0d0e8bc6 (diff) | |
Make text indexing optional
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/json/json.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/json.tm b/lib/json/json.tm index ab9b95dd..1ac19426 100644 --- a/lib/json/json.tm +++ b/lib/json/json.tm @@ -65,8 +65,8 @@ enum JSON( string := "" pos := 2 escapes := {"n"="\n", "t"="\t", "r"="\r", '"'='"', "\\"="\\", "/"="/", "b"="\b", "f"="\f"} - while pos <= text.length - c := text[pos] + repeat + c := text[pos] or stop if c == '"' if remainder remainder[] = text.from(pos + 1) |
