mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
Switch to a different algroithm.
This commit is contained in:
parent
25927ad13c
commit
f8879b307c
9 changed files with 72 additions and 16 deletions
|
@ -73,7 +73,23 @@ export default defineEventHandler(async (event) => {
|
|||
if (noDup.includes(key)) {
|
||||
return;
|
||||
} else {
|
||||
noDup.push(key);
|
||||
noDup.push({
|
||||
type: "nuuid",
|
||||
content: key,
|
||||
});
|
||||
}
|
||||
});
|
||||
const nonUUIDbutValidLinks = data.filter((id) =>
|
||||
/.*:[a-zA-Z0-9]{24}/g.test(id),
|
||||
);
|
||||
nonUUIDbutValidLinks.forEach((key) => {
|
||||
if (noDup.includes(key)) {
|
||||
return;
|
||||
} else {
|
||||
noDup.push({
|
||||
type: "vUUID",
|
||||
content: key,
|
||||
});
|
||||
}
|
||||
});
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue