decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
2026-08-25 06:04:03 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4369
// Function ID: 4370
// Name: findCodedLinkUrls
// Dependencies: [4370, 8249, 4835, 13399, 13400, 2]
// Exports: default
// Module 4369 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13400 */;
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(4370).default;
const parseToASTResult = tmp(4370).default.parseToAST(content, true, { allowLinks: true });
tmp(8249).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(8249);
}
return items;
};