fix i18n redirector

This commit is contained in:
kakkokari-gtyih 2023-12-24 02:13:23 +09:00
parent 005ef47874
commit fb2355ffae

View File

@ -21,7 +21,7 @@ export default defineNitroPlugin((nitroApp) => {
const remainingList: string[] = []; const remainingList: string[] = [];
html.head.forEach((v) => { html.head.forEach((v) => {
remainingList.push(...(v.match(/<!--(.|\n)*(?<=-->)/gm) ?? [])); 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(/<meta[^>]+>/gm) ?? []));
remainingList.push(...(v.match(/<script type="application\/ld\+json">.*(?<=<\/script>)/gm) ?? [])); remainingList.push(...(v.match(/<script type="application\/ld\+json">.*(?<=<\/script>)/gm) ?? []));
}); });