Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure that the displayname property is not parsed #384

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 27, 2024

If you have nodes with number-like names those values might be corrupted. While integer like names would be casted back to string, float-like names would be corrupted.
E.g. 2024.10 will be parsed to number 2024.1 thus loosing the trailing 0.


@perry-mitchell I think there might be even more places, especially with custom properties, where the parsing will lead to unexpected behavior. So maybe disable parsing in general and let users parse it?
Or at least expose the preprocessors, so users can decide which prop to parse.

But I think that would be a breaking change so not in 5.x. So this PR only fixes the displayname.

If you have nodes with number-like names those values might be corrupted.
While integer like names would be casted back to string,
float-like names would be corrupted.
E.g. `2024.10` will be parsed to number `2024.1` thus loosing the trailing 0.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@perry-mitchell perry-mitchell merged commit 7a9884a into perry-mitchell:master Sep 7, 2024
6 checks passed
@susnux susnux deleted the fix/displayname branch September 7, 2024 12:12
@susnux
Copy link
Contributor Author

susnux commented Oct 30, 2024

Would it be possible to create a new patch release for this @perry-mitchell ? :)

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.

2 participants