Skip to content

Extensions option breaks if local path contains a dot anywhere #79

Closed
@razor-x

Description

@razor-x

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)) {

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions