mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Simplify regex for relative size
This commit is contained in:
parent
92f285cfc9
commit
2f59d8b05e
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class VideoNode(Node):
|
|||
error_msg = 'Syntax error. Expected: ``{% video URL ... %}``'
|
||||
default_size = 'small'
|
||||
|
||||
re_size = re.compile('(?P<width>\d+[%]?)x(?P<height>\d+[%]?)')
|
||||
re_size = re.compile('(?P<width>\d+%?)x(?P<height>\d+%?)')
|
||||
|
||||
def __init__(self, parser, token):
|
||||
self.size = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue