Skip to content

Commit

Permalink
style: merge into single line
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wr committed Mar 2, 2024
1 parent 6106e4f commit 7e332da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/custom/cleanHTML.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ export function cleanHTML(content: string): string

// Define
export function cleanHTML(content: string): string {
if (!content) {
return '';
}
if (!content) return ''

Check failure on line 5 in components/custom/cleanHTML.d.ts

View workflow job for this annotation

GitHub Actions / Lint

Expect newline after if

return content.replace(/<script[^>]*>([\s\S]*?)<\/script>/gmi, '')
.replace(/<style[^>]*>([\s\S]*?)<\/style>/gmi, '')
Expand Down

0 comments on commit 7e332da

Please sign in to comment.