Update vite and replace escaped doublequotes with normal representation

This commit is contained in:
thiloho
2025-04-06 09:41:31 +02:00
parent d06664931a
commit 70a81158ef
4 changed files with 7 additions and 7 deletions

View File

@@ -36,7 +36,7 @@
"svelte-check": "4.1.5",
"typescript": "5.8.2",
"typescript-eslint": "8.27.0",
"vite": "6.2.2"
"vite": "6.2.5"
}
},
"node_modules/@ampproject/remapping": {
@@ -4575,9 +4575,9 @@
"license": "MIT"
},
"node_modules/vite": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.2.tgz",
"integrity": "sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==",
"version": "6.2.5",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.5.tgz",
"integrity": "sha512-j023J/hCAa4pRIUH6J9HemwYfjB5llR2Ps0CWeikOtdR8+pAURAk0DoJC5/mm9kd+UgdnIy7d6HE4EAvlYhPhA==",
"dev": true,
"license": "MIT",
"dependencies": {

View File

@@ -35,7 +35,7 @@
"svelte-check": "4.1.5",
"typescript": "5.8.2",
"typescript-eslint": "8.27.0",
"vite": "6.2.2"
"vite": "6.2.5"
},
"dependencies": {
"diff-match-patch": "1.0.5",

View File

@@ -143,7 +143,7 @@
{#if form?.logId === id && form?.currentDiff}
<pre>{@html DOMPurify.sanitize(
// .replace takes escaped text representations of line breaks and converts them to real line breaks that render correctly in HTML
form.currentDiff.replace(/\\r\\n|\\n|\\r/g, "\n"),
form.currentDiff.replace(/\\r\\n|\\n|\\r/g, "\n").replace(/\\\"/g, '"'),
{
ALLOWED_TAGS: ["ins", "del"]
}