Join GitHub today
Make a constant for the regex to find hidden files #4032
A raw regular expression isn't very expressive, IMHO. Rather than having people who read this code parse the regular expression to figure out what it's for, let's give a name. This way, it becomes more obvious what exactly it is we're doing here.
This was something that I saw when I was working on #4011 that I didn't want to change in that PR but did want to come back to and change later.