Skip to content

Commit

Permalink
fix(client): fix typo link check start with http
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Jan 13, 2021
1 parent 6c15a76 commit 8759f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/components/CommentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function CommentCard({comment, boxConfig, rootId, onSubmit}) {
}

let link = comment.link;
if(link && !/^https:\/\//.test(link)) {
if(link && !/^https?:\/\//i.test(link)) {
link = 'http://' + link;
}

Expand Down

0 comments on commit 8759f0f

Please sign in to comment.