We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aba4d2e + 205143c commit 51a3115Copy full SHA for 51a3115
apps/dashboard/app/javascript/dynamic_forms.js
@@ -96,7 +96,7 @@ function snakeCaseWords(str) {
96
97
// find all the captial case words and if none are found, we'll just bascially
98
// return the same string.
99
- const rex = /([A-Z]{1}[a-z]*[0-9]*)|.+/g;
+ const rex = /([A-Z]{1}[a-z]*[0-9]*)|([^-_]+)/g;
100
const words = str.match(rex);
101
102
// filter out emtpy matches to avoid having a _ at the end.
0 commit comments