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

update pascal-case to accept acronyms #68

Closed
wants to merge 1 commit into from

Conversation

jfairley
Copy link

@jfairley jfairley commented Feb 3, 2022

Updates the PascalCase validator to be regex-based, and allows names that include acronyms of any length.

Technically, this means that PASCALCASE is valid PascalCase. I don't personally think it's wrong though, just odd.

I'm hoping your CI will run tests for me. I don't have go set up on my local machine, but I think what I did is valid. 😁

close #67

@jfairley
Copy link
Author

jfairley commented Feb 3, 2022

I hope your use of the unicode library wasn't targeting something in a non-Latin language that my regex now misses, but the existing test cases didn't point out anything I should be worried about.

@loeffel-io
Copy link
Owner

Hey @jfairley,

thank you for your contribution! Really appreciate that!

There are plenty reasons because this isn't mergable:

  • rules should not include regex patterns for performance
  • rules should not include regex patterns for multilingual support

<3

@loeffel-io loeffel-io closed this Feb 23, 2022
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.

Acronyms in PascalCase
2 participants