Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
// Module ID: 4625
|
|
// Function ID: 4626
|
|
// Name: findCodedLinkUrls
|
|
// Dependencies: [4626, 8093, 5077, 13935, 13936, 2]
|
|
// Exports: default
|
|
|
|
// Module 4625 (findCodedLinkUrls)
|
|
import MarkupTypes from "MarkupTypes" /* 5077 */;
|
|
import findCodedLinkUrlsUsingRegexDefault from "findCodedLinkUrlsUsingRegex" /* 13936 */;
|
|
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 = [];
|
|
const _default = tmp(4626).default;
|
|
const parseToASTResult = tmp(4626).default.parseToAST(content, true, { allowLinks: true });
|
|
tmp(8093).walkAst(parseToASTResult, (type) => {
|
|
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);
|
|
}
|
|
});
|
|
const tmpResult = tmp(8093);
|
|
}
|
|
return items;
|
|
};
|