Thanks for the pull request. The FileMask split should be done only once and cached, doing it for every NameMatches call is unnecessary.