From 4587c0fb4d22e1efafff0d71ea8b8121ad0276a4 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 18 Nov 2020 17:25:23 -0500 Subject: [PATCH] webaccess: Use a non-capturing regex group --- src/node/hooks/express/webaccess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js index 707babe68..a1ba47e54 100644 --- a/src/node/hooks/express/webaccess.js +++ b/src/node/hooks/express/webaccess.js @@ -9,7 +9,7 @@ const readOnlyManager = require('../../db/ReadOnlyManager'); hooks.deprecationNotices.authFailure = 'use the authnFailure and authzFailure hooks instead'; -const staticPathsRE = new RegExp('^/(' + [ +const staticPathsRE = new RegExp('^/(?:' + [ 'api/.*', 'favicon\\.ico', 'javascripts/.*',