Browse Source

Merge pull request #6566 from nocodb/fix/at-im

fix: fetch at parsing
pull/6567/head
mertmit 1 year ago committed by GitHub
parent
commit
f6a272f3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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( info.headers = JSON.parse(
hreq.match(/(?<=var headers =)(.*)(?=;)/g)[0].trim(), 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) info.baseInfo = decodeURIComponent(info.link)
.match(/{(.*)}/g)[0] .match(/{(.*)}/g)[0]
.split('&') .split('&')

Loading…
Cancel
Save