2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 4549
|
|
|
|
|
// Function ID: 4550
|
2026-08-25 06:04:03 +00:00
|
|
|
// Name: findCodedLinkUrls
|
2026-09-07 16:44:02 +00:00
|
|
|
// Dependencies: [4550, 7989, 4996, 13849, 13850, 2]
|
2026-08-25 06:04:03 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 4549 (findCodedLinkUrls)
|
2026-08-25 06:04:03 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-07 16:44:02 +00:00
|
|
|
import trimTrailingPunctuationDefault from "trimTrailingPunctuation" /* 13850 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
|
|
|
|
|
const result = set.fileFinishedImporting("modules/coded_links/findCodedLinkUrls.native.tsx");
|
|
|
|
|
|
|
|
|
|
export default function findCodedLinkUrls(content) {
|
|
|
|
|
if (obj.isFindCodedLinksRegexEnabled()) {
|
|
|
|
|
let items = trimTrailingPunctuationDefault(content);
|
|
|
|
|
} else {
|
|
|
|
|
items = [];
|
2026-09-05 10:56:28 +00:00
|
|
|
const _default = tmp(4550).default;
|
|
|
|
|
const parseToASTResult = tmp(4550).default.parseToAST(content, true, { allowLinks: true });
|
|
|
|
|
tmp(7989).walkAst(parseToASTResult, (type) => {
|
2026-08-25 06:04:03 +00:00
|
|
|
let tmp = type.type === items(closure_1_2[2]).AST_KEY.LINK && typeof type.target === "string";
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = type.target.length > 0;
|
|
|
|
|
}
|
|
|
|
|
if (tmp) {
|
|
|
|
|
items.push(type.target);
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-09-05 10:56:28 +00:00
|
|
|
const tmpResult = tmp(7989);
|
2026-08-25 06:04:03 +00:00
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
};
|