decord/alpha/source/modules/coded_links/findCodedLinkUrls.native.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 4831
// Function ID: 4832
// Name: findCodedLinkUrls
// Dependencies: [4832, 7604, 5486, 13595, 13596, 2]
// Exports: default
// Module 4831 (findCodedLinkUrls)
import MarkupTypes from "MarkupTypes" /* 5486 */;
import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 13596 */;
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(4832).default;
const parseToASTResult = tmp(4832).default.parseToAST(content, true, { allowLinks: true });
tmp(7604).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(7604);
}
return items;
};