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