Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Remove useless g flag from Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysalvat committed Apr 25, 2014
1 parent b4a3350 commit 1239606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function call(video, args, options, callback) {
// Check for long and short youtube video url.
if (!id && isYouTubeRegex.test(video)) {
// Get possible IDs for youtu.be from urladdr.
id = details.pathname.slice(1).replace(/^v\//g, '');
id = details.pathname.slice(1).replace(/^v\//, '');
}

if (id === 'playlist') {
Expand Down

0 comments on commit 1239606

Please sign in to comment.