Kakulukian / youtube-transcript

Fetch transcript from a youtube video
240 stars 51 forks source link

YouTube regex too lax #6

Closed yousefamar closed 1 year ago

yousefamar commented 1 year ago

First, thanks for the great work, you saved me a lot of time!

Just a heads up: your YouTube regex (here) is a bit too loose. It will match URLs like https://example.dev/. I found this out the hard way when my server kept choking. I think it would be great to use a different regex.

Kakulukian commented 1 year ago

Thank you for notifying me, I have released version 1.0.6 of the package. This updated version includes a stricter regex to parse YouTube link 👍