Skip to content

Commit

Permalink
fix(compat): Fixed compatibility for Node.js < 12
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Jun 29, 2019
1 parent 1904a3f commit 0594ce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ node_js:
- '10'
- '9'
- '8'
- '7'
- '6'
after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"main": "./index.js",
"types": "./index.d.ts",
"engines": {
"node": ">=6"
"node": ">=8"
},
"files": [
"index.js",
Expand Down
4 changes: 2 additions & 2 deletions register.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ function splitLines( lines )

function cutColumn( line )
{
const m = line.match( /(.*:\d+):\d+$/ );
const m = line.match( /(.*:\d+):\d+\)?$/ );
if ( !m )
return line;
return m[ 1 ];
}

function cutLocation( line )
{
const m = line.match( /(.*):\d+:\d+$/ );
const m = line.match( /(.*):\d+:\d+\)?$/ );
if ( !m )
return line;
return m[ 1 ];
Expand Down

0 comments on commit 0594ce0

Please sign in to comment.