Allow \n in doc comments

This commit is contained in:
Zoe Roux 2024-12-19 20:07:18 +01:00
parent 2fd6b85d7e
commit 05d5ac5a75
No known key found for this signature in database

View File

@ -1,6 +1,6 @@
// remove indent in multi-line comments
export const comment = (str: TemplateStringsArray, ...values: any[]) =>
str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^\s+/gm, "");
str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^[^\S\n]+/gm, "");
export type RemovePrefix<
T extends string,