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

Removed usage of culture-sensitive string operations #1054

Merged
merged 3 commits into from Jun 17, 2021

Conversation

acizmarik
Copy link
Member

Resolves #950. This PR changes all occurrences of .ToUpper() and .ToLower() to their culture-invariant alternatives. I also fixed JS translations and introduced two new:

Changed translations:

  • string.ToLower() maps to String.prototype.toLocaleLowerCase()
  • string.ToUpper() maps to String.prototype.toLocaleUpperCase()

New translations:

  • string.ToLowerInvariant() maps to String.prototype.toLowerCase()
  • string.ToUpperInvariant() maps to String.prototype.toUpperCase()

Copy link
Member

@exyi exyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good bugfix. We should probably release this as 3.1 patch, right?

src/DotVVM.Samples.Tests/ErrorsTests.cs Outdated Show resolved Hide resolved
Co-authored-by: Stanislav Lukeš <exyi@outlook.cz>
@acizmarik
Copy link
Member Author

Yes, I also think that this should be included in 3.1

@quigamdev quigamdev merged commit 8fc9ae9 into main Jun 17, 2021
@acizmarik acizmarik added this to the Version 3.1 milestone Jun 17, 2021
@acizmarik acizmarik deleted the fix/strings-use-culture-invariant-operations branch June 17, 2021 13:18
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.

InvalidCssClass property doesn't convert correctly to html
3 participants