mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 23:32:58 +00:00
Add comment
This commit is contained in:
@@ -434,7 +434,7 @@ const CodeEditor = createClass({
|
|||||||
text = foldPreviewText || `Lines ${from.line+1}-${to.line+1}`;
|
text = foldPreviewText || `Lines ${from.line+1}-${to.line+1}`;
|
||||||
text = text.replace('{', '').trim();
|
text = text.replace('{', '').trim();
|
||||||
|
|
||||||
// Truncate data URLs
|
// Truncate data URLs at `data:`
|
||||||
const startOfData = text.indexOf('data:');
|
const startOfData = text.indexOf('data:');
|
||||||
if(startOfData > 0)
|
if(startOfData > 0)
|
||||||
maxLength = Math.min(startOfData + 5, maxLength);
|
maxLength = Math.min(startOfData + 5, maxLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user