decord/source/modules/coded_links/findCodedLinkUrls.native.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 4627
// Function ID: 4628
// Name: findCodedLinkUrls
// Dependencies: [4628, 8105, 5081, 13953, 13954, 2]
// Exports: default
// Module 4627 (findCodedLinkUrls)
import MarkupTypes from "MarkupTypes" /* 5081 */;
import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 13954 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/coded_links/findCodedLinkUrls.native.tsx");
export default function findCodedLinkUrls(content) {
if (obj.isFindCodedLinksRegexEnabled()) {
let items = findCodedLinkUrlsUsingRegexDefault(content);
} else {
items = [];
const _default = tmp(4628).default;
const parseToASTResult = tmp(4628).default.parseToAST(content, true, { allowLinks: true });
tmp(8105).walkAst(parseToASTResult, (type) => {
let tmp = type.type === MarkupTypes.AST_KEY.LINK && typeof type.target === "string";
if (tmp) {
tmp = type.target.length > 0;
}
if (tmp) {
items.push(type.target);
}
});
const tmpResult = tmp(8105);
}
return items;
};