hotfix: update edge.js with correct regex

pull/2865/head
Scott Anderson 2021-07-16 17:24:10 -06:00
parent 562badbad0
commit c510f454f7
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ exports.handler = (event, context, callback) => {
// or if the version number is parsed as an extension.
let newUri;
if (parsedPath.ext === '' || /\.\d*/.test(parsedPath.ext)) {
if (parsedPath.ext === '' || /\.\d{1,}/.test(parsedPath.ext)) {
newUri = path.join(parsedPath.dir, parsedPath.base, indexPath);
} else {
newUri = request.uri;