@stof Do you know a better approach? because the problem is that /dir becomes ```#^/(?=[^\.])dir$#``` which won't work to match files in the /dir directory. And with the ```/*.*$``` at the end it does, and all other unit tests still work.