diff --git a/src/Utils/StringUtils.ts b/src/Utils/StringUtils.ts index 8c55e2a..847e194 100644 --- a/src/Utils/StringUtils.ts +++ b/src/Utils/StringUtils.ts @@ -24,7 +24,10 @@ export type MatchString = MatchString, Pattern> extends true ? true : false; -export type Trim = T extends ` ${infer Rest}` ? Trim : T; +export type Trim = + T extends ` ${infer Rest}` ? Trim : + T extends `\n${infer Rest}` ? Trim : + T; type Indents = {