From 75c5dd83120059db9f50585bbd3b2e14a42c00e9 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 27 Jan 2022 21:07:21 -0500 Subject: [PATCH] fix: codeql error --- tests/mocks/api/axios/get/poopmap.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mocks/api/axios/get/poopmap.mjs b/tests/mocks/api/axios/get/poopmap.mjs index 82a4fe60..47551372 100644 --- a/tests/mocks/api/axios/get/poopmap.mjs +++ b/tests/mocks/api/axios/get/poopmap.mjs @@ -1,7 +1,7 @@ /**Mocked data */ export default function({ faker, url, options, login = faker.internet.userName() }) { //Wakatime api - if (/^https:..api.poopmap.net/.test(url)) { + if (/^https:..api.poopmap.net.*$/.test(url)) { //Get user profile if (/public_links\/MOCKED_TOKEN/.test(url)) { console.debug(`metrics/compute/mocks > mocking poopmap api result > ${url}`)