mixu / gluejs

Build CommonJS modules for the browser via a chainable API
http://mixu.net/gluejs/
165 stars 13 forks source link

Can exclude string paths with Windows support #13

Closed ngryman closed 11 years ago

ngryman commented 11 years ago

Hi,

This PR makes #exclude work properly with string parameters, with Windows paths support. This is related to #12.

The substr comparison always failed as the starting index was wrong, if comparing with the end of the path was what you wanted.

As the expr was not normalized, path comparison failed under Windows because registered paths were already normalized.

mixu commented 11 years ago

Thanks @ngryman! And sorry for the delay in getting this in!