Or https:
On Jul 3, 2013 5:55 PM, "Christopher Van" <notifications@github.com> wrote:

> In build.js:
>
> > +    includes.forEach(function(include) {
> > +        var include_path = [__dirname, '/', include].join('');
> > +        if (include.lastIndexOf('.html') === (include.length - 5)) {
> > +            while (match = css_pattern.exec(
> > +                fs.readFileSync(include_path, {encoding: 'utf-8'}))) {
> > +                if (blacklist.indexOf(path.basename(match[1])) === -1) {
> > +                    output += fs.readFileSync(assets_directory + match[1], {encoding: 'utf-8'});
> > +                }
> > +            }
> > +        }
> > +    });
> > +
> > +    var url_pattern = /url\(([^)]+)\)/g;
> > +    output = output.replace(url_pattern, function(match, url, offset, string) {
> > +        url = url.replace(/"|'/g, '');
> > +        if (url.indexOf('http') === 0 || match[1].indexOf('data:') !== -1) {
>
> check for http:, as we could have an image named http.png
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/fireplace/pull/210/files#r5023550>
> .
>