Fix regex match in notfound route (#3790)

Fixes #3789
This commit is contained in:
Paul Melnikow
2019-07-25 17:18:02 -05:00
committed by GitHub
parent ab7a2106b5
commit e33cb30a9a

View File

@@ -206,7 +206,7 @@ class Server {
})
}
camp.notfound(/(.svg|.json|)$/, (query, match, end, request) => {
camp.notfound(/(\.svg|\.json|)$/, (query, match, end, request) => {
const [, extension] = match
const format = (extension || '.svg').replace(/^\./, '')