The vimeo and youtube urls are now able to handle a few more formats as defined in the tests.
The regex is able to handle a few more formats than the ones covered in the tests, I'm unwilling to add arbitrary test cases till i can find some proper documentation to back up the format. I'm currently looking for a better regex that requires less use of specific match patterns to catch all the various formats. But this one blocks the fake urls you pointed out, and catches all the formats i can think of or have found suggested. I also added more test cases to match the improvements, and fixed a faulty test that didnt use a proper input format to test with.
Coverage remained the same when pulling 085b65024a4f71fe578d62ef693417927c445edc on techdragon:master into b8611cdd504018151c472f360a5797bb58a0cb53 on yetty:master.
The vimeo and youtube urls are now able to handle a few more formats as defined in the tests.
The regex is able to handle a few more formats than the ones covered in the tests, I'm unwilling to add arbitrary test cases till i can find some proper documentation to back up the format. I'm currently looking for a better regex that requires less use of specific match patterns to catch all the various formats. But this one blocks the fake urls you pointed out, and catches all the formats i can think of or have found suggested. I also added more test cases to match the improvements, and fixed a faulty test that didnt use a proper input format to test with.