-
Notifications
You must be signed in to change notification settings - Fork 227
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
fix: update masks for topic should be snake case #1778
Conversation
src/util.ts
Outdated
* @private | ||
*/ | ||
export function camelToSnake(input: string): string { | ||
return input.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to double check what should happen with numbers. E. g. abc360Value
- should it be abc_360_value
or abc360_value
? Ask me why I care :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I brought up in a 1-1 chat that I want to see a test so this would be a good test case too 😁
Fixes: #1587