1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

[~] fix space

Signed-off-by: Arthur Knoepflin <arthur@knoepflin.eu>
This commit is contained in:
Arthur Knoepflin 2021-04-16 19:10:10 +02:00
parent 9f3c5affd5
commit f60e275447
No known key found for this signature in database
GPG Key ID: BB1E0D36309AD6DD
2 changed files with 2 additions and 2 deletions

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}`));
}
/**

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 ["", ""];