* Escape a string so it can be used in a RegExp * constructor. * * @param {String} str
(str)
| 764 | */ |
| 765 | |
| 766 | function escapeRegex(str) { |
| 767 | return str.replace(regexEscapeRE, '\\$&'); |
| 768 | } |
| 769 | |
| 770 | function compileRegex() { |
| 771 | var open = escapeRegex(config.delimiters[0]); |