lint: white space

This commit is contained in:
jean-emmanuel 2019-04-16 12:25:58 +02:00
parent a5e82e5ec1
commit 5a5c7dbb86

View file

@ -38,7 +38,7 @@ function httpRoute(req, res) {
url = url.replace('_:_', ':') // escaped drive colon
url = url.replace(/^\/([^/]*):/, '$1') // strip leading slash
if (url.match(/.(jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico)(\?[0-9]*)?$/i)) {
if (url.match(/.(jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico)(\?[0-9]*)?$/i)) {
res.sendFile(path.resolve(url))
} else {
res.writeHead(403)