Skip to content

Commit

Permalink
fix issue in less when only one image get rendered #583
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jun 28, 2020
1 parent 719c1cb commit 3f0a403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* fix for font-family wildcard css rule
* fix cursor on scrollbar
* fix broken html with wide characters without formatting
* fix jumping to address bar on CTRL+L
* fix jumping to address bar on CTRL+L [#587](https://github.com/jcubic/jquery.terminal/issues/587)
* fix issue in less when only one image get rendered [#583](https://github.com/jcubic/jquery.terminal/issues/583)

## 2.17.2
### Bugfix
Expand Down
6 changes: 4 additions & 2 deletions js/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
factory(root.jQuery);
}
})(function($) {
var img_split_re = /(\[\[(?:[^;]*@[^;]*);[^;]*;[^\]]*\]\])/;
var img_split_re = /(\[\[(?:[^;]*@[^;]*);[^;]*;[^\]]*\]\s*\])/;
var img_re = /\[\[(?:[^;]*@[^;]*);[^;]*;[^;]*;[^;]*;([^;]*)\] ?\]/;
// -------------------------------------------------------------------------
function find(arr, fn) {
Expand Down Expand Up @@ -308,7 +308,9 @@
});
}
} else {
result = result.concat(part.split('\n'));
if (part !== '\n') {
result = result.concat(part.split('\n'));
}
recur();
}
})();
Expand Down

0 comments on commit 3f0a403

Please sign in to comment.