MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeDrawtext

Function escapeDrawtext

apps/sim/lib/media/ffmpeg.ts:185–187  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

183}
184
185function escapeDrawtext(text: string): string {
186 return text.replace(/\\/g, '\\\\').replace(/:/g, '\\:').replace(/'/g, "\\'").replace(/%/g, '\\%')
187}
188
189async function withTempDir<T>(fn: (dir: string) => Promise<T>): Promise<T> {
190 ensureFfmpeg()

Callers 1

addTextFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected