Compare commits

...

2 Commits

2 changed files with 16 additions and 13 deletions

@ -18,12 +18,7 @@
</template> </template>
<template v-slot:description>{{ notice.description }}</template> <template v-slot:description>{{ notice.description }}</template>
</i18n> </i18n>
<a <a v-if="notice.nova" href="https://nova.tornado.ws/" target="_blank" rel="noopener noreferrer">
v-if="notice.nova"
href="https://nova.tornado.ws"
target="_blank"
rel="noopener noreferrer"
>
Tornado Cash Nova Tornado Cash Nova
</a> </a>
<a <a

@ -705,14 +705,22 @@ const actions = {
break break
case 13: case 13:
text = text.replace(/\\\\n\\\\n(\s)?(\\n)?/g, '\\n') text = text.replace(/\\\\n\\\\n(\s)?(\\n)?/g, '\\n')
} break
} // Fix invalid JSON in proposal 15: replace single quotes with double and add comma before description
case 15:
if (text.includes(`'`)) {
text = text.replaceAll(`'`, `"`) text = text.replaceAll(`'`, `"`)
text = text.replace('"description"', ',"description"')
break
case 16:
text = text.replace('#16: ', '')
break
// Add title to empty (without title and description) hacker proposal 21
case 21:
return {
title: 'Proposal #21: Restore Governance',
description: ''
}
} }
if (text.includes(`" "`)) {
text = text.replace(`" "`, `", "`)
} }
let title, description, rest let title, description, rest