test: fix macos chrome detection

This commit is contained in:
Clark Du 2019-04-01 09:35:19 +01:00
parent 7770a833c6
commit 583e32a3ef

View File

@ -47,7 +47,7 @@ export default class ChromeDetector {
}
execSync(
`${LSREGISTER} -dump` +
" | grep -i '(google chrome\\( canary\\)\\?|chromium).app$'" +
' | grep -E -i \'(google chrome( canary)?|chromium).app$\'' +
' | awk \'{$1=""; print $0}\''
)
.toString()