Skip to content

Commit

Permalink
fix(metadata): add string validation to replace markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
willian-viana committed Sep 25, 2024
1 parent b95bf65 commit 943dcda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/modals/meta/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class ModalMeta extends PureComponent {

parseMarkdownURLToHTML = (markdown) => {
const markdownRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
if (typeof markdown !== 'string') return markdown;

const htmlAnchor = markdown.replace(
markdownRegex,
Expand Down

0 comments on commit 943dcda

Please sign in to comment.