mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-30 02:06:28 +00:00
Allow \n in doc comments
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user