MCPcopy
hub / github.com/mongodb/node-mongodb-native / escape

Function escape

test/tools/spec-runner/index.js:35–37  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

33chai.use(require('./matcher').default);
34
35function escape(string) {
36 return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
37}
38
39function translateClientOptions(options) {
40 Object.keys(options).forEach(key => {

Callers 2

testOperationFunction · 0.85
handleReSortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected