Closed kt3k closed 10 years ago
You're right @kt3k. This is fixed in the upcoming 0.11 release. I'll be publishing it in the next day or two: https://github.com/tkellen/node-liftoff/blob/0.11/lib/build_config_name_regex.js#L14-L16
This was addressed in 6369b8b0f084d71faeeb3b887299a1763b28e4b9, and is now available in 0.11. There are some breaking changes, though. Be sure to check out https://github.com/tkellen/node-liftoff/blob/master/UPGRADING.md
Hi!
I think I found a bug in the creation of
configPathRegex
in index.js.When the
extensions
parameter has only one entry (for example.js
), thenconfigPathRegex
becomemochafile{.js}
(whenconfigName
ismochafile
). But this string is not treated as glob (brace expansion) pattern, but just as the string itself. So in this case liftoff searches the filemochafile{.js}
literally, notmochafile.js
.This behaviour of
node-findup-sync
(ornode-glob
) doesn't seem a bug because the document of bash says:( in https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html )
So I suggest this change.
Thanks!