mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 04:04:28 +01: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