nit: might as well use ```^https?``` for efficiency