decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4470
// Function ID: 4471
// Name: findCodedLinkUrls
// Dependencies: [4471, 7920, 4957, 13856, 13857, 2]
// Exports: default
// Module 4470 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13857 */;
const result = set.fileFinishedImporting("modules/coded_links/findCodedLinkUrls.native.tsx");
export default function findCodedLinkUrls(content) {
if (obj.isFindCodedLinksRegexEnabled()) {
let items = trimTrailingPunctuationDefault(content);
} else {
items = [];
const _default = tmp(4471).default;
const parseToASTResult = tmp(4471).default.parseToAST(content, true, { allowLinks: true });
tmp(7920).walkAst(parseToASTResult, (type) => {
let tmp = type.type === items(closure_1_2[2]).AST_KEY.LINK && typeof type.target === "string";
if (tmp) {
tmp = type.target.length > 0;
}
if (tmp) {
items.push(type.target);
}
});
const tmpResult = tmp(7920);
}
return items;
};