send icon indicating copy to clipboard operation
send copied to clipboard

If a filename includes a dot, the extensions property does not work

Open maxweisel opened this issue 4 years ago • 0 comments
trafficstars

This is essentially the same bug as https://github.com/koajs/send/issues/79 but the fix employed doesn't work if the actual filename includes a dot.

The issue is with this line: https://github.com/koajs/send/blob/master/index.js#L100

From looking at it, it really seems like we should drop the regex check altogether, but I don't fully understand why the regex check is there in the first place.

Max

maxweisel avatar Sep 07 '21 16:09 maxweisel