[~] fix space

Signed-off-by: Arthur Knoepflin <arthur@knoepflin.eu>
This commit is contained in:
Arthur Knoepflin committed 2021-04-19 23:02:30 +02:00
1 parent 9f3c5affd5
commit f60e275447
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ export class LogList extends React.Component<Props> {
return this.props.logs
.map(log => logStore.splitOutTimestamp(log))
.map(([logTimestamp, log]) => (`${moment.tz(logTimestamp, preferences.localeTimezone).format()} ${log}`));
.map(([logTimestamp, log]) => (`${moment.tz(logTimestamp, preferences.localeTimezone).format()}${log}`));
}
/**
+1 -1
View File
@@ -147,7 +147,7 @@ export class LogStore {
}
splitOutTimestamp(logs: string): [string, string] {
const extraction = /^(\d+\S+) (.*)/m.exec(logs);
const extraction = /^(\d+\S+)(.*)/m.exec(logs);
if (!extraction || extraction.length < 3) {
return ["", ""];