Skip to content

Commit

Permalink
Another way to fix rare case
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 23, 2021
1 parent c86114c commit 319de91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ module.exports = function updateDB (print) {
var lock = detectLockfile()
var latest = getLatestInfo(lock)

if (latest.version.indexOf(',') > -1) {
latest.version = latest.version.split(',')[0].trim()
if (Array.isArray(latest.version)) {
latest.version = latest.version[0]
}

var browsersListRetrievalError
Expand Down

0 comments on commit 319de91

Please sign in to comment.