mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04: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
|
@ -17,6 +17,13 @@ export default defineEventHandler(async (event) => {
|
|||
"裸照",
|
||||
"性感",
|
||||
"找妹",
|
||||
"肉蹼",
|
||||
"超兇北半球",
|
||||
"大露",
|
||||
"色誘",
|
||||
"死亡",
|
||||
"撩妹",
|
||||
"裸上身",
|
||||
],
|
||||
};
|
||||
});
|
||||
|
|
|
@ -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