Skip to content

Commit 449fec3

Browse files
authored
Merge pull request #776 from GetStream/markdown-email-fix
ignores markdown title as well as link
2 parents cb9d520 + f545613 commit 449fec3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ const matchMarkdownLinks = (message) => {
5353
const links = matches
5454
? matches.map((match) => {
5555
const i = singleMatch.exec(match);
56-
return i && i[2];
56+
return i && [i[1], i[2]];
5757
})
5858
: [];
59-
return links;
59+
return links.flat();
6060
};
6161

6262
/** @type {(message: string) => (string|null)[]} */

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"emitDeclarationOnly": true,
1616
"noEmitOnError": true,
1717
"skipLibCheck": true,
18-
"lib": ["es2015", "dom"],
18+
"lib": ["es2020", "dom"],
1919
"paths": {
2020
"*": ["src/@types/*"],
2121
"types": ["types/index.d.ts"]

0 commit comments

Comments
 (0)