I think this line might be a little too clever, it's hard to tell at a glance what's going on. Should probably break it into steps.

Alternatively, you can probably use <a href="http://nodejs.org/docs/latest/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost">`url.parse`</a>:

```js
const scheme = urlUtil.parse('' + url).scheme
if (scheme === 'data:')
  return createFromData(url, callback);
```