frontend/.pnpm-store/v3/files/ea/f266d73716d4cbeefbc48cad68075547af5e9f91848ec655e4eba05d315e9da7a106c305c0534828c0a476056906a49f692e8c85321e3b42f128f72dc3f190

10 lines
254 B
Plaintext

// Thanks to Andrew Clover:
// http://stackoverflow.com/questions/3561493
// /is-there-a-regexp-escape-function-in-javascript
"use strict";
var re = /[-/\\^$*+?.()|[\]{}]/g;
module.exports = function (str) { return String(str).replace(re, "\\$&"); };