decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
2026-09-02 09:53:35 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 4467
// Function ID: 4468
// Name: findCodedLinkUrls
// Dependencies: [4468, 7907, 4949, 13808, 13809, 2]
// Exports: default
// Module 4467 (findCodedLinkUrls)
import set from "set" /* 2 */;
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13809 */;
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(7907).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(7907);
}
return items;
};