Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hibiyasleep committed Feb 17, 2025
1 parent 6f6c655 commit 0f059fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/string-util/string-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ export function isValidEmail(str: string): boolean {
}

export function splitTags(str: string, separator: string | RegExp = ','): Tag[] {
return str.split(separator).filter(_ => _.length).map((text) => ({ text: text.trim() }));
return str
.split(separator)
.filter((_) => _.length)
.map((text) => ({ text: text.trim() }));
}

/** @deprecated do .split().map().filter() yourself */
Expand All @@ -183,7 +186,7 @@ export function splitString(str: string, separator = ','): string[] {
}

export function joinTags(tags: Readonly<Tag[]>, separator = ','): string {
return tags.map((tag) => tag.text).join(separator)
return tags.map((tag) => tag.text).join(separator);
}

/** @deprecated do .map().join() yourself */
Expand Down

0 comments on commit 0f059fa

Please sign in to comment.