Skip to content

Commit

Permalink
feat: require Node.js >=10.13
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Require Node.js >= 10.13
  • Loading branch information
pvdlg committed Jan 9, 2020
1 parent 67bf9fd commit 5f6cbcb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: node_js
node_js:
- 12
- 10
- 8

branches:
only:
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

const escapeRegExp = require('lodash.escaperegexp');
const capitalize = require('lodash.capitalize');
const isString = require('lodash.isstring');
Expand All @@ -9,6 +7,8 @@ const hostConfig = require('./lib/hosts-config');

const {hasOwnProperty} = Object.prototype;

/* eslint prefer-named-capture-group: "off" */

const FENCE_BLOCK_REGEXP = /^(([ \t]*`{3,4})([^\n]*)([\s\S]+?)(^[ \t]*\2))/gm;
const CODE_BLOCK_REGEXP = /(`(?![\\]))((?:.(?!\1(?![\\])))*.?)\1/g;
const HTML_CODE_BLOCK_REGEXP = /(<code)+?((?!(<code|<\/code>)+?)[\S\s])*(<\/code>)+?/gim;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"xo": "^0.25.0"
},
"engines": {
"node": ">=8.3"
"node": ">=10.13"
},
"files": [
"lib",
Expand Down

0 comments on commit 5f6cbcb

Please sign in to comment.