Fix misplaced '?' in regexp from 52d5652540

This commit is contained in:
Dan Stillman 2022-01-03 01:29:35 -05:00
parent 52d5652540
commit 035aac30f2

View file

@ -1963,7 +1963,7 @@ Zotero.VersionHeader = {
}
else {
// Use "Firefox/[version]" in user agent if not a proxy check or file sync request
let s3RE = /(zoteroproxycheck|zoterofilestorage(test))?\.s3\.(us-east-1\.)?amazonaws\.com/;
let s3RE = /(zoteroproxycheck|zoterofilestorage(test)?)\.s3\.(us-east-1\.)?amazonaws\.com/;
let isAppNameDomain = s3RE.test(domain);
if (!isAppNameDomain) {
let ua = channel.getRequestHeader('User-Agent');