2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 4628
|
|
|
|
|
// Function ID: 4629
|
2026-08-25 06:04:03 +00:00
|
|
|
// Name: findCodedLinkUrls
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [4629, 8096, 5080, 13940, 13941, 2]
|
2026-08-25 06:04:03 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 4628 (findCodedLinkUrls)
|
|
|
|
|
import MarkupTypes from "MarkupTypes" /* 5080 */;
|
|
|
|
|
import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 13941 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/coded_links/findCodedLinkUrls.native.tsx");
|
2026-08-25 06:04:03 +00:00
|
|
|
|
|
|
|
|
export default function findCodedLinkUrls(content) {
|
|
|
|
|
if (obj.isFindCodedLinksRegexEnabled()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let items = findCodedLinkUrlsUsingRegexDefault(content);
|
2026-08-25 06:04:03 +00:00
|
|
|
} else {
|
|
|
|
|
items = [];
|
2026-09-15 14:23:42 +00:00
|
|
|
const _default = tmp(4629).default;
|
|
|
|
|
const parseToASTResult = tmp(4629).default.parseToAST(content, true, { allowLinks: true });
|
|
|
|
|
tmp(8096).walkAst(parseToASTResult, (type) => {
|
2026-09-10 05:38:07 +00:00
|
|
|
let tmp = type.type === MarkupTypes.AST_KEY.LINK && typeof type.target === "string";
|
2026-08-25 06:04:03 +00:00
|
|
|
if (tmp) {
|
|
|
|
|
tmp = type.target.length > 0;
|
|
|
|
|
}
|
|
|
|
|
if (tmp) {
|
|
|
|
|
items.push(type.target);
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-09-15 14:23:42 +00:00
|
|
|
const tmpResult = tmp(8096);
|
2026-08-25 06:04:03 +00:00
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
};
|