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!: changed to treat digits as keeped marks #11

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

sttk
Copy link
Owner

@sttk sttk commented Feb 25, 2024

This PR changes the conversion methods for digits.

Currently, digits are treated as lower case alphabets, but after this change, digits are treated as keeped marks.

For example, currently,

    snake_case("123abc456def"); // ==> "123abc456def"
    snake_case("123ABC456DEF"); // ==> "123_abc456_def"

And after this change,

    snake_case("123abc456def"); // ==> "123_abc456_def"
    snake_case("123ABC456DEF"); // ==> "123_abc456_def"

@sttk sttk changed the title update: changed to treat digits as keeped marks update!: changed to treat digits as keeped marks Feb 25, 2024
@sttk sttk force-pushed the update_treat-digits-as-keeped-marks branch from 8280993 to 85adead Compare February 25, 2024 05:08
@sttk sttk merged commit cb3dfc6 into main Feb 25, 2024
13 checks passed
@sttk sttk deleted the update_treat-digits-as-keeped-marks branch February 25, 2024 05:16
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.

None yet

1 participant