mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
fix: trimStart to text
This commit is contained in:
@@ -4,5 +4,5 @@
|
|||||||
* @returns cleaned text
|
* @returns cleaned text
|
||||||
*/
|
*/
|
||||||
export const cleanupComments = (text: string): string => {
|
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