Skip to content

Commit

Permalink
Fixed regex comparator to use search() not match() so it can match th…
Browse files Browse the repository at this point in the history
…e new youtube detection regex.

- and rev bump
  • Loading branch information
techdragon committed Jul 27, 2013
1 parent bde468d commit f8693c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion embed_video/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NoIdFound(Exception):


def detect_backend(url):
if DETECT_YOUTUBE.match(url):
if DETECT_YOUTUBE.search(url):
return YoutubeBackend(url)
elif DETECT_VIMEO.match(url):
return VimeoBackend(url)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def read(fname):
setup(
name='django-embed-video',
packages=find_packages(),
version='0.2.2',
version='0.2.3',
author='Juda Kaleta',
author_email='juda.kaleta@gmail.com',
url='https://github.com/yetty/django-embed-video',
Expand Down

0 comments on commit f8693c3

Please sign in to comment.