Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/utils/regexp-escape.js

14 lines
571 B
JavaScript
Raw Normal View History

"use strict";
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
/* eslint hammerhead/proto-methods: 2 */
Object.defineProperty(exports, "__esModule", { value: true });
// NOTE: taken from https://github.com/benjamingr/RegExp.escape
function default_1(str) {
return str.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
}
exports.default = default_1;module.exports = exports.default;