Made the change but separate regex for each, as `file:///` gets stripped to one slash, so this doesn't handle both