tweak semi-colon regex

master
Brad Cornes 2021-06-04 13:37:44 +01:00
parent 44e6b9ab9d
commit 73886ffbf0
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export async function stringifyRoot(state: State, root: Root, uri?: string): Pro
return clone
.toString()
.replace(/([^}{;])$/gm, '$1;')
.replace(/([^;{}\s])\n}/g, '$1;\n}')
.replace(/^(?: )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize))
}