0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Trim the trailing { on a CSS fold.

This commit is contained in:
David Bolack
2024-07-20 00:43:02 -05:00
parent 9a4cc5f63e
commit 2c4f3473e5

View File

@@ -433,7 +433,7 @@ const CodeEditor = createClass({
}
text = foldPreviewText || `Lines ${from.line+1}-${to.line+1}`;
text = text.trim();
text = text.trim().replace('{', '').trim();
if(text.length > maxLength)
text = `${text.substr(0, maxLength)}...`;