Please sign in to comment.
Move re variable definition in lookupFiles Utility (#3082)
* move regexp definition in lookupFiles. I am using mocha programmatically, along with its utility `lookupFiles`. A regular expression must be evaluated to lookup files although it is only needed in one case where a glob is not provided. Shifting the `re` variable definition down to where it is needed will avoid this issue, also eliminate the requirement of always sending an array to the extensions parameter (although it might not be needed) * add unit tests remove commented file
- Loading branch information...
Showing with 21 additions and 1 deletion.