(s)
| 880 | // http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021 |
| 881 | // Prereq: s is a string. |
| 882 | var escapeForRegexp = function(s) { |
| 883 | return s |
| 884 | .replace(/([-()[\]{}+?*.$^|,:#<!\\])/g, '\\$1') |
| 885 | // eslint-disable-next-line no-control-regex |
| 886 | .replace(/\x08/g, '\\x08'); |
| 887 | }; |
| 888 | |
| 889 | |
| 890 | /** |
no outgoing calls
no test coverage detected