Skip to content

Commit

Permalink
Merge pull request #17 from doowb/master
Browse files Browse the repository at this point in the history
supports lookbehinds
  • Loading branch information
doowb authored May 14, 2019
2 parents 6a7fd01 + 1f63f7e commit 22f8cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.removeBackslashes = str => {

exports.supportsLookbehinds = () => {
let segs = process.version.slice(1).split('.');
if (segs.length === 3 && +segs[0] >= 8 && +segs[1] >= 10) {
if (segs.length === 3 && +segs[0] >= 9 || (+segs[0] === 8 && +segs[1] >= 10)) {
return true;
}
return false;
Expand Down

0 comments on commit 22f8cbc

Please sign in to comment.