MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / _escapeRegExp

Function _escapeRegExp

docs/_static/searchtools.js:59–60  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

57 * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping
58 */
59const _escapeRegExp = (string) =>
60 string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
61
62const _escapeHTML = (text) => {
63 return text

Callers 1

searchtools.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected