decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
2026-09-03 10:05:34 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4467
// Function ID: 4468
// Name: findCodedLinkUrls
// Dependencies: [4468, 7910, 4950, 13824, 13825, 2]
// Exports: default
// Module 4467 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13825 */;
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(4468).default;
const parseToASTResult = tmp(4468).default.parseToAST(content, true, { allowLinks: true });
tmp(7910).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(7910);
}
return items;
};