krakenjs / makara

An internationalization module for kraken and express
Other
135 stars 42 forks source link

System Path separator is invalid as a regexp element under Windows #16

Closed lmarkus closed 10 years ago

lmarkus commented 10 years ago

From https://github.com/paypal/kraken-js/issues/65

This is possibly an error with the dustjs-i18n.js task in makara. It would seem this line would make an invalid RexExp if the path separator is '\'

var regexp = new RegExp('([' + path.sep + ']?)$');
ghost commented 10 years ago

+1