Code coverage report for master/helper/escapeRegExp.js

Statements: 100% (3 / 3)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (3 / 3)      Ignored: none     

All files » master/helper/ » escapeRegExp.js
1 2 3 4 5 61   1 37    
var makeString = require('./makeString');
 
module.exports = function escapeRegExp(str) {
  return makeString(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
};