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:
1 file changed
+2
-2
@@ -147,9 +147,9 @@ export class LogStore {
|
||||
}
|
||||
|
||||
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 ["", ""];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user