webaccess: Use a non-capturing regex group

This commit is contained in:
Richard Hansen 2020-11-18 17:25:23 -05:00 committed by John McLear
parent a05e8198c9
commit 4587c0fb4d

View file

@ -9,7 +9,7 @@ const readOnlyManager = require('../../db/ReadOnlyManager');
hooks.deprecationNotices.authFailure = 'use the authnFailure and authzFailure hooks instead'; hooks.deprecationNotices.authFailure = 'use the authnFailure and authzFailure hooks instead';
const staticPathsRE = new RegExp('^/(' + [ const staticPathsRE = new RegExp('^/(?:' + [
'api/.*', 'api/.*',
'favicon\\.ico', 'favicon\\.ico',
'javascripts/.*', 'javascripts/.*',