Browse Source

fix: fetch at parsing

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/6566/head
mertmit 1 year ago
parent
commit
272fb95f7f
  1. 4
      packages/nocodb/src/modules/jobs/jobs/at-import/helpers/fetchAT.ts

4
packages/nocodb/src/modules/jobs/jobs/at-import/helpers/fetchAT.ts

@ -53,7 +53,9 @@ async function initialize(shareId, appId?: string) {
info.headers = JSON.parse(
hreq.match(/(?<=var headers =)(.*)(?=;)/g)[0].trim(),
);
info.link = unicodeToChar(hreq.match(/(?<=fetch\(")(.*)(?=")/g)[0].trim());
info.link = unicodeToChar(
hreq.match(/(?<=fetch\(")(\\.*)(?=")/g)[0].trim(),
);
info.baseInfo = decodeURIComponent(info.link)
.match(/{(.*)}/g)[0]
.split('&')

Loading…
Cancel
Save