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

Issue with PascalCase #4

Closed
farnabaz opened this issue Aug 17, 2021 · 2 comments
Closed

Issue with PascalCase #4

farnabaz opened this issue Aug 17, 2021 · 2 comments

Comments

@farnabaz
Copy link

There is an unexpected result When I try to convert PascalCase string into kebab-case

Screen Shot 2021-08-17 at 2 33 42 PM

// wrong behavior with PascalCase
scule.kebabCase('ALink')
'alink' // wrong, it should be a-link

// If I convert it to camelCase works fine
scule.kebabCase(scule.camelCase('ALink'))
'a-link'

``
@pi0
Copy link
Member

pi0 commented Aug 17, 2021

It is an intended and documented behavior (test) to split on rising edges otherwise FOOBAR will be f-o-o-b-a-r. When using camelCase it will be converted to aLink which is a-link in kebab format. I'm okay with also doing it for falling edges but needs a major version.

@pi0 pi0 closed this as completed in bb94236 Aug 17, 2021
@pi0
Copy link
Member

pi0 commented Aug 17, 2021

Fixed in 0.3.0 (bb94236)

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

No branches or pull requests

2 participants