What does the `/^http/i.test(url)` test actually test? It seems weak. So I'd either remove it or make it stronger.