mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
fix: trimStart to text
This commit is contained in:
@@ -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, '');
|
||||
};
|
||||
|
Reference in New Issue
Block a user