Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
david-fernando committed Jan 15, 2024
1 parent 834cc90 commit cea12cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils/returnThumbnail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ function returnThumbnail(text: string){
const mediumUrlBlocked = 'https://medium.com/_/stat?event=post'
const placeholderUrl = 'https://placehold.jp/bdbdc2/ffffff/250x250.png?text=No%20image'

// const regex = /<img\s+[^>]*\bsrc\s*=\s*["']([^"']*)["'][^>]*>/;
// const match = text.match(regex);
const cheerio = load(text)

let imageUrl = cheerio('img').first().attr('src')
Expand Down

0 comments on commit cea12cd

Please sign in to comment.