ソースを参照

change regex to support width & height in percents

snay 8 年 前
コミット
9dea9b285b
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      liquid_tags/youtube.py

+ 1 - 1
liquid_tags/youtube.py

@@ -26,7 +26,7 @@ from .mdx_liquid_tags import LiquidTags
 
 SYNTAX = "{% youtube id [width height] %}"
 
-YOUTUBE = re.compile(r'([\S]+)(\s+(\d+)\s(\d+))?')
+YOUTUBE = re.compile(r'([\S]+)(\s+([\d%]+)\s([\d%]+))?')
 
 
 @LiquidTags.register('youtube')