Skip to content

Commit 246e3a5

Browse files
committed
fix: interests regexp error
1 parent acf9522 commit 246e3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function getInterests(onSuccess) {
8686
rows.pop();
8787
const interests = rows.map((a) => ({
8888
img: a.match(/(\[?\(.+\)\])/g)[0].slice(1, -2),
89-
title: a.match(/(\[\w+\])/g)[0].slice(1, -1),
89+
title: a.match(/(\[[\w.-]+\])/g)[0].slice(1, -1),
9090
href: a.match(/(\)\]\(.+\))/g)[0].slice(3, -1),
9191
}));
9292
onSuccess(interests);

0 commit comments

Comments
 (0)