mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 00:43:50 +01:00
fix i18n redirector
This commit is contained in:
parent
005ef47874
commit
fb2355ffae
@ -21,7 +21,7 @@ export default defineNitroPlugin((nitroApp) => {
|
||||
const remainingList: string[] = [];
|
||||
html.head.forEach((v) => {
|
||||
remainingList.push(...(v.match(/<!--(.|\n)*(?<=-->)/gm) ?? []));
|
||||
remainingList.push(...(v.match(/<link\s+rel="(og|alternate|canonical)[^>]+>/gm) ?? []));
|
||||
remainingList.push(...(v.match(/<link\s+rel="(og|alternate|canonical|me)[^>]+>/gm) ?? []));
|
||||
remainingList.push(...(v.match(/<meta[^>]+>/gm) ?? []));
|
||||
remainingList.push(...(v.match(/<script type="application\/ld\+json">.*(?<=<\/script>)/gm) ?? []));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user