John Beaven
Results
1
issues of
John Beaven
The regex only matches alpha characters. For extensions such as mp4, this results in "mp". The regex should be changed from: var ext = url.match(/\.[a-z]{1,}/g); to var ext = url.match(/\.[a-z0-9]{1,}/g);...