nl_tokens: Get provider by URL
pl_tokens: function getProviderByUrl ( url ) { // YouTube if ( / ^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$ / . test ( url ) ) { return providers . youtube ; } // Vimeo if ( / ^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/) / . test ( <mask> ) ) { return providers . vimeo ; } return null ; }