mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
[~] fix regex extraction
Signed-off-by: Arthur Knoepflin <arthur@knoepflin.eu>
This commit is contained in:
parent
0c121b7086
commit
9f3c5affd5
@ -147,9 +147,9 @@ export class LogStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
splitOutTimestamp(logs: string): [string, string] {
|
splitOutTimestamp(logs: string): [string, string] {
|
||||||
const extraction = /^(\d+\S+) (.*)/gm.exec(logs);
|
const extraction = /^(\d+\S+) (.*)/m.exec(logs);
|
||||||
|
|
||||||
if (extraction.length < 3) {
|
if (!extraction || extraction.length < 3) {
|
||||||
return ["", ""];
|
return ["", ""];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user