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

Add comment

This commit is contained in:
Trevor Buckner
2024-08-08 17:44:16 -04:00
parent 3b61cd355f
commit 643af98ca3

View File

@@ -434,7 +434,7 @@ const CodeEditor = createClass({
text = foldPreviewText || `Lines ${from.line+1}-${to.line+1}`;
text = text.replace('{', '').trim();
// Truncate data URLs
// Truncate data URLs at `data:`
const startOfData = text.indexOf('data:');
if(startOfData > 0)
maxLength = Math.min(startOfData + 5, maxLength);