diff --git a/src/utils/strings.ts b/src/utils/strings.ts index d9f24d5..ee8ea2b 100644 --- a/src/utils/strings.ts +++ b/src/utils/strings.ts @@ -9,12 +9,15 @@ export function replace( string: string, search: string, - replaceValue: string, + replaceValue: string ): string { const searchIndex = string.indexOf(search); if (searchIndex === -1) return string; - return string.slice(0, searchIndex) + replaceValue + - string.slice(searchIndex + search.length); + return ( + string.slice(0, searchIndex) + + replaceValue + + string.slice(searchIndex + search.length) + ); } /** @@ -29,8 +32,8 @@ export function replace( export function replaceAll( string: string, search: string, - replaceValue: string, -) { + replaceValue: string +): string { let searchIndex = string.indexOf(search); if (searchIndex === -1) return string;