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

[localization-utilities] Update the .loc.json schema to allow for string names that include the '$' character. #4879

Merged
merged 6 commits into from
Aug 12, 2024

Conversation

iclanton
Copy link
Member

@iclanton iclanton commented Aug 12, 2024

Summary

Adds the $ character to the schema for .loc.json string names. The $ character is allowed in JavaScript variable names.

How it was tested

https://jsbench.me/wxlsb1hcmr/1

Consideration, this is about 20% slower.

Revised the approach to add an API to node-core-library's JsonSchema validation to ignore the $schema property.

@iclanton iclanton merged commit 3bcf141 into microsoft:main Aug 12, 2024
5 checks passed
@iclanton iclanton deleted the allow-569XZilmsin-string-names branch August 12, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants