mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 02:42:43 +00:00
Revert "Correct truncation when looking for data: in css folding"
This reverts commit ad1e8d50d7.
This commit is contained in:
@@ -438,7 +438,7 @@ const CodeEditor = createClass({
|
|||||||
|
|
||||||
// Extra data url chomping
|
// Extra data url chomping
|
||||||
// Try to make it pretty...
|
// Try to make it pretty...
|
||||||
const startOfData = text.indexOf('data:') > 0 ? text.indexOf('data:') : false;
|
const startOfData = text.indexOf('data:');
|
||||||
if(startOfData) {
|
if(startOfData) {
|
||||||
text = (startOfData > maxLength) ?
|
text = (startOfData > maxLength) ?
|
||||||
`${text.slice(0, text.indexOf(':') + 1)} ... ${text.slice(startOfData, startOfData + 5)} ...` :
|
`${text.slice(0, text.indexOf(':') + 1)} ... ${text.slice(startOfData, startOfData + 5)} ...` :
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ module.exports = {
|
|||||||
|
|
||||||
// IMPORT FOLDING
|
// IMPORT FOLDING
|
||||||
|
|
||||||
const importMatcher = /^@import.*?[;]/;
|
const importMatcher = /^@import.*?;/;
|
||||||
|
|
||||||
if(activeLine.match(importMatcher)) {
|
if(activeLine.match(importMatcher)) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user