`toCamelCase` handlebar helper should not transform already camelCase string
PeterMK85 opened this issue · comments
Describe the bug
We added recently toCamelCase
helper but it should not touch an already camelCase transformed string
Expected behavior
Need to added:
// Check if input string is already in camelCase
if (/^[a-z][a-zA-Z0-9]*$/.test(input)) {
return input
}