Skip to content

Commit 2a1eb0f

Browse files
committed
chore: update helper
1 parent fb818b2 commit 2a1eb0f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/helpers/src/utils.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ const getInfo = (asyncapi) => {
6565
* @returns {string} The converted snake_case string
6666
*/
6767
const toSnakeCase = (inputStr) => {
68-
if ((/^[a-z]+(_[a-z]+)*$/).test(inputStr)) {
69-
return inputStr;
70-
}
7168
return inputStr
7269
.replace(/\W+/g, ' ')
7370
.split(/ |\B(?=[A-Z])/)

0 commit comments

Comments
 (0)