decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4549
// Function ID: 4550
// Name: findCodedLinkUrls
// Dependencies: [4550, 7989, 4996, 13849, 13850, 2]
// Exports: default
// Module 4549 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13850 */;
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(4550).default;
const parseToASTResult = tmp(4550).default.parseToAST(content, true, { allowLinks: true });
tmp(7989).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(7989);
}
return items;
};