1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

Nicer indentation

This commit is contained in:
Jaiwanth
2021-06-24 22:49:36 +05:30
parent 544761329c
commit ccd02c48b3

View File

@@ -42,7 +42,7 @@ ${json}
protected indentEachLine(string: string) { protected indentEachLine(string: string) {
const indent = ' '; const indent = ' ';
const regex = /^(?!\s*$)/gm; const regex = /^(?!\s*$)/gm;
return string.replace(regex, indent.repeat(1)); return string.replace(regex, indent.repeat(2));
} }
protected onBeforeUnload = (e: BeforeUnloadEvent) => { protected onBeforeUnload = (e: BeforeUnloadEvent) => {