Skip to content

Commit

Permalink
Update core.utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Sep 27, 2024
1 parent 02cfa46 commit c3ddaa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/core.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function sortAlphabetically<T>(arrayToSort: readonly T[], propertySelecto
export function toPascalCase(text: string): string {
return prefixWithUnderscoreWhenStartsWithNonAlpha(
toSafeStringCode(
`${text}`
text
.toLowerCase()
.replace(new RegExp(/[-_]+/, 'g'), ' ')
.replace(new RegExp(/[^\w\s]/, 'g'), '')
Expand Down

0 comments on commit c3ddaa6

Please sign in to comment.