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

Method trimLines

src/MagicString.ts:1065–1067  ·  view source on GitHub ↗

* Removes empty lines from the start and end.

()

Source from the content-addressed store, hash-verified

1063 * Removes empty lines from the start and end.
1064 */
1065 trimLines(): this {
1066 return this.trim('[\\r\\n]')
1067 }
1068
1069 /**
1070 * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.

Callers

nothing calls this directly

Calls 1

trimMethod · 0.95

Tested by

no test coverage detected