Skip to content

Tag.toString() quotes string values that would read back as numbers - #3141

Merged
mtoy-googly-moogly merged 1 commit into
mainfrom
tag-number-strings
Oct 12, 2026
Merged

mtoy-googly-moogly merged 1 commit into
mainfrom
tag-number-strings

Conversation

@mtoy-googly-moogly

Copy link
Copy Markdown
Collaborator

Fixes #3139. Tag.toString() wrote any string matching [0-9A-Za-z_]+ without quotes, so a string like "007" read back as the number 7.

Code that wrote a number into a tag as a string, relying on it to come back a number, now gets a string. The renderer's chart-settings writers did this; they now pass the numbers.

A string value is written bare only when it starts with a letter or
underscore. The renderer's chart-settings writers pass numbers instead
of stringified numbers.

Fixes #3139
@mtoy-googly-moogly
mtoy-googly-moogly merged commit 4dad560 into main Oct 12, 2026
21 checks passed
@mtoy-googly-moogly
mtoy-googly-moogly deleted the tag-number-strings branch October 12, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tag.toString() writes number-like strings unquoted, so they read back as numbers

1 participant