diff --git a/lib/jekyll-spaceship/processors/media-processor.rb b/lib/jekyll-spaceship/processors/media-processor.rb index d3d428e..4fdf3df 100644 --- a/lib/jekyll-spaceship/processors/media-processor.rb +++ b/lib/jekyll-spaceship/processors/media-processor.rb @@ -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