[#958148] Check media urls from start until we hit a match, previous vim...

...eo would check from the starting of the match until it hits the end, thus failing when there was something else on the end.