Created
August 12, 2022 09:02
-
-
Save rassie/402363145b82d952f0f3701ee6bed188 to your computer and use it in GitHub Desktop.
camelCase to kebab-case for `jsonnet`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function camelToKebabCase(x) = std.asciiLower(std.native('regexSubst')('([A-Z])', x, '-$1')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment