Youtube URL format #1342

Closed
richardpetithory opened this Issue Apr 10, 2012 · 1 comment

Comments

Projects
None yet
2 participants

The regex for the youtube URL recognition assumes a www. is prefixed to the URL. The following regular expressions should be changed as follows:

'`(?:https?|ftp)://www\.youtube\.com\/watch\?v=([^&]+)`'

'`(?:https?|ftp)://(?:www\.)?youtube\.com\/watch\?v=([^&]+)`'

and

'`(?:https?)://www\.youtu\.be\/([^&]+)`'

'`(?:https?)://(?:www\.)?youtu\.be\/([^&]+)`'

and

'`(?:https?|ftp)://vimeo\.com\/(\d+)`'

'`(?:https?|ftp)://(?:www\.)?vimeo\.com\/(\d+)`'
Owner

linc commented Apr 10, 2012

Please check the master branch before filing tickets like this :) This is long-fixed.

linc closed this Apr 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment