MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / trim

Method trim

src/Bundle.ts:320–322  ·  view source on GitHub ↗
(charType?: string)

Source from the content-addressed store, hash-verified

318 }
319
320 trim(charType?: string): this {
321 return this.trimStart(charType).trimEnd(charType)
322 }
323
324 trimStart(charType?: string): this {
325 const rx = new RegExp(`^${charType || '\\s'}+`)

Callers 4

trimLinesMethod · 0.95
Bundle.test.tsFile · 0.45
isEmptyMethod · 0.45

Calls 2

trimStartMethod · 0.95
trimEndMethod · 0.45

Tested by

no test coverage detected