Solutions-Nitriques/oembed_field — Issue #19: Update Youtube driver to support their new share URL's.
Author: brendo
Created: 2012-02-06 05:10:16+00:00
State: open

Youtube now offer embed URL's like so: `http://youtu.be/LeGGwMepKNk`, however these don't currently pass the validation which checks against `'youtube.com'`.

This patch works:

public function isMatch($url) {
return strpos($url, $this->Domain) > -1 || strpos($url, self::BASE_URL) > -1;
}

However I'm wondering if a better option would be to allow the `ServiceDriver` constructor to accept `$domain` as an array. From what I can tell, the `getDomain()` is only used by the `isMatch()` function, so the impact shouldn't be fairly minimal.

I'm happy to submit a pull request, is `dev` the branch to use?