Skip to content

Commit

Permalink
Add check so less exceptions are caused
Browse files Browse the repository at this point in the history
  • Loading branch information
Ca5e committed Mar 4, 2024
1 parent 85fb312 commit e3a3f1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/src/helpers/regularize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @returns The regularized text
*/
export function regularize(input: string): string {
if (!input) return input
try {
// Convert the text to lowercase
let process = input.toLowerCase()
Expand Down

0 comments on commit e3a3f1b

Please sign in to comment.