Closed guillaumealgis closed 1 year ago
Hi, thanks for the PR. I tried it and everything looks good. There was only a problem with flat case
not working correctly. No case seems to work but adding delimiter
causes some kind of problem. it could probably be easier to not define a delimiter and then simply remove all spaces. i'll take care of it, i need to publish the update today as i've some work that i need to focus on but again, thank you for the PR.
https://user-images.githubusercontent.com/1219228/211715586-538e855d-d09d-4d10-b537-b4d3765f6cf6.mp4
Found the problem, in main.js it was registered as toflatcase: 'toflatCase',
but the function name is toFlatCase
, just changed toflatcase: 'toFlatCase'
and it's working correctly now. Thank's.
Sorry for the mistake, it slept my attention :)
Thank for the fix and for merging !
This closes https://github.com/biati-digital/nova-text-tools/issues/15
✅
Param Case
should be renamed toKebab Case
✅Train Case
as alias of the current commandHeader Case
✅Screaming Snake Case
as alias of the current commandConstant Case
✅ AddedFlatcase
✅ AddedScreaming Kebab Case
✅ AddedPascal Snake Case
✅ Addedcamel Snake Case
For
Flatcase
, from what I could gather (1, 2) it should remove spaces yes (I don't think there is a definitive source of truth on this though).I added a test for each new case.
Let me know if you think I should amend anything :)