mpratt / Embera

A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
MIT License
335 stars 59 forks source link

Allow hidden vi #53

Closed i92segoa closed 5 years ago

i92segoa commented 6 years ago

When embedding from Vimeo the regular expression on the provider file doesn't allow hidden videos with their hash.

The regular expression should be changed to:

return (preg_match('~/(?:[0-9]{5,12}/?[\w\d]*)$~i', $this->url)); //modified to capture hash on hidden videos

mpratt commented 5 years ago

Thanks, added your fix