Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Simplified regexps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Mar 18, 2019
1 parent 41844b1 commit f9a5e89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mediaembedediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ export default class MediaEmbedEditing extends Plugin {
{
name: 'youtube',
url: [
/^youtube\.com\/watch\?v=([\w-]+)/,
/^m\.youtube\.com\/watch\?v=([\w-]+)/,
/^youtube\.com\/v\/([\w-]+)/,
/^m\.youtube\.com\/v\/([\w-]+)/,
/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,
/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,
/^youtube\.com\/embed\/([\w-]+)/,
/^youtu\.be\/([\w-]+)/
],
Expand Down

0 comments on commit f9a5e89

Please sign in to comment.