From 643af98ca38d938f7f97e15d64091bb8ddf9c751 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Thu, 8 Aug 2024 17:44:16 -0400 Subject: [PATCH] Add comment --- shared/naturalcrit/codeEditor/codeEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index bc6b2b8dd..3186e39f1 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -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);