MCPcopy Index your code
hub / github.com/deepnote/deepnote / escapeRegex

Function escapeRegex

packages/cli/src/utils/dotenv.ts:144–146  ·  view source on GitHub ↗

* Escape special regex characters in a string.

(str: string)

Source from the content-addressed store, hash-verified

142 * Escape special regex characters in a string.
143 */
144function escapeRegex(str: string): string {
145 return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
146}

Callers 1

updateDotEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected