Skip to content

Commit

Permalink
Fix CodeQL errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilan committed Jun 29, 2024
1 parent 43cf865 commit 46fb6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
function http_mock() {
log.warn('mocking http requests to s3');

const baseHostname = 's3.us-east-1.amazonaws.com';
const baseHostname = 's3\.us-east-1\.amazonaws\.com';
const basePath = `${os.tmpdir()}/mock`;

nock(new RegExp('^\.*' + baseHostname))
Expand Down

0 comments on commit 46fb6aa

Please sign in to comment.