14 lines
571 B
JavaScript
14 lines
571 B
JavaScript
"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;
|
|
|