Skip to content

Commit 8ca9f65

Browse files
committed
fix: some image links were hijacked to dailymotion (#51)
1 parent b06f420 commit 8ca9f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jekyll-spaceship/processors/media-processor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def handle_vimeo(element)
9090
def handle_dailymotion(element)
9191
handle_media(element, {
9292
media_type: 'iframe',
93-
host: '(https?:)?\\/\\/.*dai.?ly.*',
94-
id: '(?<=video\\/|\\/)([a-zA-Z0-9\\_\\-]+)',
93+
host: '(https?:)?\\/\\/(?>www\\.)?dai\\.?ly(?>motion\\.com\\/video)?\\/',
94+
id: '([a-zA-Z0-9\\_\\-]+)',
9595
base_url: "https://www.dailymotion.com/embed/video/"
9696
})
9797
end

0 commit comments

Comments
 (0)