Skip to content

Commit 96dd8f6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aaa876d commit 96dd8f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/containers/blogs/Blogs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export default function Blogs() {
1515
return typeof html === "string"
1616
? html
1717
.split(/<\/p>/i)
18-
.map((part) => part.split(/<p[^>]*>/i).pop())
19-
.filter((el) => el.trim().length > 0)
20-
.map((el) => el.replace(/<\/?[^>]+(>|$)/g, "").trim())
18+
.map(part => part.split(/<p[^>]*>/i).pop())
19+
.filter(el => el.trim().length > 0)
20+
.map(el => el.replace(/<\/?[^>]+(>|$)/g, "").trim())
2121
.join(" ")
2222
: NaN;
2323
}

0 commit comments

Comments
 (0)