Skip to content

Commit

Permalink
fix: handle chrome canary version (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen authored Jan 7, 2021
1 parent c78209a commit 61ea98f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/envinfo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/helpers/browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
if (utils.isLinux) {
chromeVersion = utils
.run('google-chrome --version')
.then(v => v.replace(/^.* ([^ ]*)/g, '$1'));
.then(v => v.replace(' dev', '').replace(/^.* ([^ ]*)/g, '$1'));
} else if (utils.isMacOS) {
chromeVersion = utils
.getDarwinApplicationVersion(utils.browserBundleIdentifiers.Chrome)
Expand Down

0 comments on commit 61ea98f

Please sign in to comment.