Skip to content

Commit 1f63f7e

Browse files
committed
supports lookbehinds
- only check minor when major is version 8 - all majors greater than or equal to 9 support lookbehinds
1 parent 6a7fd01 commit 1f63f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.removeBackslashes = str => {
2222

2323
exports.supportsLookbehinds = () => {
2424
let segs = process.version.slice(1).split('.');
25-
if (segs.length === 3 && +segs[0] >= 8 && +segs[1] >= 10) {
25+
if (segs.length === 3 && +segs[0] >= 9 || (+segs[0] === 8 && +segs[1] >= 10)) {
2626
return true;
2727
}
2828
return false;

0 commit comments

Comments
 (0)