Skip to content

Commit 3048477

Browse files
Copilotggazzo
andauthored
chore: prevent undefined supportSchemesForLink in filtered markdown parser (#38958)
Co-authored-by: ggazzo <[email protected]>
1 parent 139e9dc commit 3048477

File tree

1 file changed

+1
-1
lines changed
  • apps/meteor/app/markdown/lib/parser/filtered

1 file changed

+1
-1
lines changed

apps/meteor/app/markdown/lib/parser/filtered/filtered.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const filtered = (
99
supportSchemesForLink: 'http,https',
1010
},
1111
) => {
12-
const schemes = options.supportSchemesForLink.split(',').join('|');
12+
const schemes = (options.supportSchemesForLink || 'http,https').split(',').join('|');
1313

1414
// Remove block code backticks
1515
message = message.replace(/```/g, '');

0 commit comments

Comments
 (0)