MCPcopy Create free account
hub / github.com/alibaba/open-code-review / escapedRegExp

Function escapedRegExp

scripts/github-actions/action-contract.test.js:357–359  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

355}
356
357function escapedRegExp(value) {
358 return new RegExp(value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
359}
360
361function assertValidation(value, expectedValid) {
362 const step = validationStep();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected