Using regexp instead of 'minimatch' for better browser compat