mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-29 20:29:40 +02:00
Apply suggestions from code review
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -229,7 +229,7 @@ export const setWrap = function (wrapSetting?: boolean) {
|
||||
};
|
||||
|
||||
const extractWrap = (text?: string): { cleanedText?: string; wrap?: boolean } => {
|
||||
if (!text) {
|
||||
if (text === undefined) {
|
||||
return {};
|
||||
}
|
||||
text = text.trim();
|
||||
|
Reference in New Issue
Block a user