+ // Which dirs should we exclude from our searches?
+ // If not defined, we default to excluding any dirname that begins
+ // with a . which is the old behaviour and therefore excludes .git/
+ $excludeDirsPattern = defined('CIVICRM_EXCLUDE_DIRS_PATTERN')
+ ? constant('CIVICRM_EXCLUDE_DIRS_PATTERN')
+ : '@' . preg_quote(DIRECTORY_SEPARATOR) . '\.@';
+