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

Service name gets mangled when in Caps and Hyphenated #87

Open
thulasi-ram opened this issue Feb 3, 2022 · 0 comments
Open

Service name gets mangled when in Caps and Hyphenated #87

thulasi-ram opened this issue Feb 3, 2022 · 0 comments

Comments

@thulasi-ram
Copy link

The ssm parameter path gets mangled if the service name is hyphenated with title cases.

For eg: ServiceA-UITest -> service-a--u-i-test

This especially affects edit_config.

The culprit is here:

return stringcase.spinalcase(name)

The stringcase library doesn't handle prefixed hyphens. This library in particular has couple of edgecases in the issues section.

Solution

To be backward compatible we can use regex replace and handled special cases like hyphen-caps, caps-caps continuously etc.

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

1 participant