2026-09-21 13:40:21 +00:00
|
|
|
// Module ID: 4745
|
|
|
|
|
// Function ID: 4746
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: findCodedLinkUrls
|
2026-09-21 13:40:21 +00:00
|
|
|
// Dependencies: [4746, 8247, 5207, 14115, 14116, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-21 13:40:21 +00:00
|
|
|
// Module 4745 (findCodedLinkUrls)
|
|
|
|
|
import MarkupTypes from "MarkupTypes" /* 5207 */;
|
|
|
|
|
import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 14116 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
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 = [];
|
2026-09-21 13:40:21 +00:00
|
|
|
const _default = tmp(4746).default;
|
|
|
|
|
const parseToASTResult = tmp(4746).default.parseToAST(content, true, { allowLinks: true });
|
|
|
|
|
tmp(8247).walkAst(parseToASTResult, (type) => {
|
2026-09-18 19:45:33 +00:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-09-21 13:40:21 +00:00
|
|
|
const tmpResult = tmp(8247);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
};
|