Closed
Description
The regex in this line will match paths with a dot anywhere. In particular if I'm developing in the local folder /home/razorx/web/example.com
and try to use the extensions
option to serve /foo
then path = /home/razorx/web/example.com/foo
and will match the regex thus skipping the if block.
if (extensions && !/\..*$/.exec(path)) {