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

added support for any case, and Title Case #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JoseConseco
Copy link

now this kind of strings are supported: 'aNy-CasE' or 'Any cAse' etc -> always converted to snake_case
and I added new: Title Case

TitleCase.mp4

now this kind of  strings are supported: aNy-CasE  or Any cAse
and new: Title Case
Comment on lines +1 to +7
This fork add support for: `aNy-CasE` or `Any cAse` - always converted to snake_case
Also I added support for new: `Title Case`

<video controls="true" allowfullscreen="true" poster="path/to/poster_image.png">
<source src="https://user-images.githubusercontent.com/13521338/113520457-8213d100-9593-11eb-974b-b8172eddd950.mp4" type="video/mp4">
</video>

Copy link
Owner

Choose a reason for hiding this comment

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

Hey! thanks for your contribution!

Could you please make this look like it is part of the same repo? 🙇

let l:upper = '\v\C^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' "UPPER_CASE
let l:pascal = '\v\C^[A-Z][a-z0-9]*([A-Z0-9][a-z0-9]*)*$' "PascalCase
let l:title = '\v\C^[A-Z][a-z0-9]*( [A-Z][a-z0-9]+)*$' "Title Case
let l:any = '\v\C^[a-zA-Z][a-zA-Z0-9]*(( |_|-)[a-zA-Z][a-zA-Z0-9]+)*$' "aNy_casE Any-case etc.
Copy link
Owner

Choose a reason for hiding this comment

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

This regex seems unused...

@icatalina
Copy link
Owner

Man, really appreciate the PR. I'm surprised you found this and are using it 😅, I don't recall adding it to any plugin list...

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