decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
2026-08-27 16:17:25 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4434
// Function ID: 4435
// Name: findCodedLinkUrls
// Dependencies: [4435, 7830, 4901, 13499, 13500, 2]
// Exports: default
// Module 4434 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13500 */;
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(4435).default;
const parseToASTResult = tmp(4435).default.parseToAST(content, true, { allowLinks: true });
tmp(7830).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(7830);
}
return items;
};