fix gitignore
memoize the regex, no need to create it each time