mixu / gluejs

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

incorrect RegExp #3

Closed athibaud closed 12 years ago

athibaud commented 12 years ago

the global handler uses the expression:

new RegExp('.*\.js$')

but you use a single-quoted string and you forgot to escape the backslash so it evaluates to:

/.*.js$/

which obviously doesn't do the same thing!

athibaud commented 12 years ago

found about that one when trying to define custom handlers for .ejs files, there would be two handlers for those files for the both finish with 'js'! cool project btw!

mixu commented 12 years ago

:+1: thanks @athibaud!