There's no real need for a RegExp here [1]. See the comment below on splitting the extension from the filename. If you pass that one into this function, it's simply a matter of `options.extensions[extension] === strategy``` (where `extension` is the supplied parameter).


[1] Also, if you meant to specify that it should match `.`, you'll need to write `\.`, as `.` matches any character.