Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions Libraries/LogHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,22 @@ function get_version_and_board(log) {
// Check we have bracketed the messages we need
continue
}
let types = []
for (const type of Object.keys(build_types)) {
types.push("(?:" + type + ")")
}
const regex = new RegExp("(" + types.join("|") + ").+\\((.+)\\)", 'g')
const found = regex.exec(MSG.Message[i])
if (found == null) {
continue
}
if (fw_string == null) {
let types = []
for (const type of Object.keys(build_types)) {
types.push("(?:" + type + ")")
}
const regex = new RegExp("(" + types.join("|") + ").+\\((.+)\\)", 'g')
const found = regex.exec(MSG.Message[i])
if (found == null) {
continue
}
fw_string = found[0]
}
if (build_type == null) {
build_type = build_types[found[1]]
}
if (fw_hash == null) {
fw_hash = found[2]
}
os_string = MSG.Message[i+1]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading