UNPKG

phaser4-rex-plugins

Version:
12 lines (9 loc) 277 B
// https://github.com/sindresorhus/escape-string-regexp/blob/master/index.js var EscapeRegex = function (s) { return s .replace(re0, '\\$&') .replace(re1, '\\x2d'); } var re0 = /[|\\{}()[\]^$+*?.]/g; var re1 = /-/g; export default EscapeRegex;