Title: Bug Discovered
Last modified: August 20, 2016

---

# Bug Discovered

 *  Resolved [Frank](https://wordpress.org/support/users/fmacdonald/)
 * (@fmacdonald)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bug-discovered/)
 * Hello,
 * the regex in this plugin cannot handle underscores in the video id e.g.
 * [http://www.youtube.com/watch?feature=player_embedded&v=B9sBlmY_iME](http://www.youtube.com/watch?feature=player_embedded&v=B9sBlmY_iME)
 * it strips the _ resulting in a malformed id e.g.
 * B9sBlmY
 * to fix this update the regex expression in the youtube function at line 202 from
 * `if (preg_match('/^http:\/\/.*(v=([-0-9a-zA-Z]*)).*$/', $attribute, $matches))`
 * to
 * `if (preg_match('/^http:\/\/.*(v=([-0-9a-zA-Z_]*)).*$/', $attribute, $matches))`
 * [http://wordpress.org/extend/plugins/responsive-video-light/](http://wordpress.org/extend/plugins/responsive-video-light/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [billknechtel](https://wordpress.org/support/users/billknechtel/)
 * (@billknechtel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/bug-discovered/#post-3458465)
 * Howdy!
 * Thanks for letting me know about the underscore being a part of YouTube’s id 
   character set. I’ve just rolled out version 1.1.0 of the plugin which adds the
   underscore to the regex as well as another unrelated feature. Please let me know
   if you run into any other issues!
 * Kind Regards,
    Bill

Viewing 1 replies (of 1 total)

The topic ‘Bug Discovered’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-video-light_5e5c5c.svg)
 * [Responsive Video Light](https://wordpress.org/plugins/responsive-video-light/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-video-light/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-video-light/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-video-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-video-light/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-video-light/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [billknechtel](https://wordpress.org/support/users/billknechtel/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/bug-discovered/#post-3458465)
 * Status: resolved