Skip to content

Commit

Permalink
refactor: use hexo-util built-in escape-regexp (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Mar 6, 2020
1 parent a71202e commit 936ef7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/fs.js
Expand Up @@ -5,7 +5,7 @@ const fs = require('graceful-fs');
const { dirname, join, extname, basename } = require('path');
const fsPromises = fs.promises;
const chokidar = require('chokidar');
const escapeRegExp = require('escape-string-regexp');
const { escapeRegExp } = require('hexo-util');

const rEOL = /\r\n/g;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"bluebird": "^3.5.1",
"chokidar": "^3.0.0",
"escape-string-regexp": "^2.0.0",
"graceful-fs": "^4.1.11"
"graceful-fs": "^4.1.11",
"hexo-util": "^1.8.1"
},
"devDependencies": {
"chai": "^4.1.2",
Expand Down

0 comments on commit 936ef7d

Please sign in to comment.