(s)
| 865 | // http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021 |
| 866 | // Prereq: s is a string. |
| 867 | var escapeForRegexp = function(s) { |
| 868 | return s |
| 869 | .replace(/([-()[\]{}+?*.$^|,:#<!\\])/g, '\\$1') |
| 870 | // eslint-disable-next-line no-control-regex |
| 871 | .replace(/\x08/g, '\\x08'); |
| 872 | }; |
| 873 | |
| 874 | |
| 875 | /** |
no outgoing calls
no test coverage detected