Skip to content

Commit

Permalink
fix: some image links were hijacked to dailymotion (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Apr 3, 2021
1 parent b06f420 commit 8ca9f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll-spaceship/processors/media-processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def handle_vimeo(element)
def handle_dailymotion(element)
handle_media(element, {
media_type: 'iframe',
host: '(https?:)?\\/\\/.*dai.?ly.*',
id: '(?<=video\\/|\\/)([a-zA-Z0-9\\_\\-]+)',
host: '(https?:)?\\/\\/(?>www\\.)?dai\\.?ly(?>motion\\.com\\/video)?\\/',
id: '([a-zA-Z0-9\\_\\-]+)',
base_url: "https://www.dailymotion.com/embed/video/"
})
end
Expand Down

0 comments on commit 8ca9f65

Please sign in to comment.