]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/index.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / request / node_modules / har-validator / node_modules / chalk / node_modules / escape-string-regexp / index.js
1 'use strict';
2
3 var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
4
5 module.exports = function (str) {
6         if (typeof str !== 'string') {
7                 throw new TypeError('Expected a string');
8         }
9
10         return str.replace(matchOperatorsRe, '\\$&');
11 };