What does ** mean in a regular expression, I’m looking at the following piece of code:
def coffee2js
coffee_folder = self.config['coffeescript_folder'] || '**/*.coffee'
compile_coffeescript(["*.coffee", coffee_folder], /\.coffee$/, '.js')
end
Isn’t saying **/*.coffee the same as saying */*.coffee?
This is not a regex, this is syntax of globbing.
This expression
finds all
.coffeefiles under/some/dirin all directories recursively (as opposed to looking only at/some/dirand not going into nested dirs).