MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / escapeRegex

Function escapeRegex

packages/core/src/compiler/timingCompiler.ts:222–224  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

220}
221
222function escapeRegex(str: string): string {
223 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
224}
225
226/**
227 * Extract video/audio elements that already have data-duration set.

Callers 2

injectDurationsFunction · 0.70
clampDurationsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected