-
Notifications
You must be signed in to change notification settings - Fork 150
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
screaming kebab case doesn't treat numbers as separate word? #72
Comments
Thanks for reaching out! Strum delegates generating all of it's different cases to the heck crate. While I agree that's unexpected, I'm hesitant to add special cases on top of that library. I might suggest reaching out on that repo and see if they'd take a fix in their crate. Thanks! |
EDIT: I'm now maintaining the heck crate and will soon release a new version with the unicode-segmentation dependency being optional (but am still unsure whether it makes sense for strum to depend on it). Maybe you could reuse serde's implementation or coordinate a shared crate for this logic with them? That implementation does however also not put |
ConvertCase implements convert_case() which accepts customization options to tweak behaviour of other case conversion functions. Currently, it accepts `number_starts_word` option to have word boundaries when characters in a word change from numeric to alphabetic or vice versa. Other case conversion functions are implemented in terms on convert_case() by passing `number_starts_word` as false by default. ref: withoutboats#18 ref: Peternator7/strum#72
The following code doesn't work as expected
instead strum generates:
"AES128"
The text was updated successfully, but these errors were encountered: