From 5f6cbcb56aadf1fff5dbc09f959050bf74d2660a Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Thu, 9 Jan 2020 16:45:23 -0500 Subject: [PATCH] feat: require Node.js >=10.13 BREAKING CHANGE: Require Node.js >= 10.13 --- .travis.yml | 1 - index.js | 4 ++-- package.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2423dc4..984f122 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: node_js node_js: - 12 - 10 - - 8 branches: only: diff --git a/index.js b/index.js index c6c63af..a4d1c48 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,3 @@ -'use strict'; - const escapeRegExp = require('lodash.escaperegexp'); const capitalize = require('lodash.capitalize'); const isString = require('lodash.isstring'); @@ -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 = /()+?)[\S\s])*(<\/code>)+?/gim; diff --git a/package.json b/package.json index bd5e314..a761538 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "xo": "^0.25.0" }, "engines": { - "node": ">=8.3" + "node": ">=10.13" }, "files": [ "lib",