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

Method trimLines

src/MagicString.ts:1073–1075  ·  view source on GitHub ↗

* Removes empty lines from the start and end.

()

Source from the content-addressed store, hash-verified

1071 * Removes empty lines from the start and end.
1072 */
1073 trimLines(): this {
1074 return this.trim('[\\r\\n]')
1075 }
1076
1077 /**
1078 * 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