diff --git a/mdx_oembed/inlinepatterns.py b/mdx_oembed/inlinepatterns.py index 1f585d7..b147d96 100644 --- a/mdx_oembed/inlinepatterns.py +++ b/mdx_oembed/inlinepatterns.py @@ -7,7 +7,7 @@ import oembed LOG = logging.getLogger(__name__) -OEMBED_LINK_RE = r'\!\[([^\]]*)\]\((https?://[^\)]*)' \ +OEMBED_LINK_RE = r'\!\[([^\]]*)\]\(((?:https?:)?//[^\)]*)' \ r'(?' + text = '![video](http://www.youtube.com/watch?v=7XzdZ4KcI8Y)' output = self.markdown.convert(text) - self.assertEqual(output, expected) + self.assertIn('