fix: trimStart to text

This commit is contained in:
Sidharth Vinod
2023-03-31 00:25:33 +05:30
parent d16894daf4
commit 1945a62990
2 changed files with 12 additions and 12 deletions

View File

@@ -4,5 +4,5 @@
* @returns cleaned text
*/
export const cleanupComments = (text: string): string => {
return text.replace(/^\s*%%(?!{)[^\n]+/gm, '');
return text.trimStart().replace(/^\s*%%(?!{)[^\n]+/gm, '');
};