// Module ID: 4882 // Function ID: 4883 // Name: findCodedLinkUrls // Dependencies: [4883, 7659, 5792, 13675, 13676, 2] // Exports: default // Module 4882 (findCodedLinkUrls) import MarkupTypes from "MarkupTypes" /* 5792 */; import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 13676 */; 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(13675); if (obj.isFindCodedLinksRegexEnabled()) { items = findCodedLinkUrlsUsingRegexDefault(content); } else { items = []; const _default = tmp(4883).default; const parseToASTResult = _default.parseToAST(content, true, { allowLinks: true }); const tmpResult = tmp(7659); 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; };