Skip to content

Commit 28ca90b

Browse files
rchlpimlie
authored andcommitted
fix: correct regexp for detecting chrome (#27)
Resolves #23
1 parent e10c182 commit 28ca90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/detectors/chrome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class ChromeDetector {
4646
}
4747
execSync(
4848
`${LSREGISTER} -dump` +
49-
" | egrep -i '(google chrome\\( canary\\)\\?|chromium).app$'" +
49+
' | grep -E -i \'(google chrome( canary)?|chromium).app$\'' +
5050
' | awk \'{$1=""; print $0}\''
5151
)
5252
.toString()

0 commit comments

Comments
 (0)