Skip to content

Commit

Permalink
Remove unused funks
Browse files Browse the repository at this point in the history
  • Loading branch information
juszczykjakub committed Jul 11, 2019
1 parent 8ebe96d commit cbc6d54
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const {
REGEX_REMOVE_BACKSLASH
} = require('./constants');

exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
exports.toPosixSlashes = str => str.replace(/\\/g, '/');

Expand Down

0 comments on commit cbc6d54

Please sign in to comment.