lotus / node_modules /@hapi /hoek /lib /escapeRegex.js
k-l-lambda's picture
updated node_modules
4cadbaf
raw
history blame contribute delete
198 Bytes
'use strict';
const internals = {};
module.exports = function (string) {
// Escape ^$.*+-?=!:|\/()[]{},
return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&');
};