Platform independent file separator

Current implementation does not work on Windows. This fix works on Unix/Win
Hey,

double backslash is just to escape out the path.sep (win or unix) in regexp
-> it won't work without it.

Tomas Weiss.

2014-12-04 23:36 GMT+01:00 Jonatan Dahl <notifications@github.com>:

> In lib/index.js:
>
> > @@ -20,6 +21,8 @@ function ngHtml2jsify(opts) {
> >    opts.module = opts.module || null;
> >    opts.extension = opts.extension || 'html';
> >
> > +  var fileMatching = new RegExp("^.*\\" + path.sep + "(.*)$");
>
> won't path.sep output another OS-compliant slash? (back or forward)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/javoire/browserify-ng-html2js/pull/8/files#r21342366>.
>