mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fix only the first newline char is replaced
Must use regex to replace all instances of newline chars.
This commit is contained in:
parent
9289b009b6
commit
a0f3678163
1 changed files with 1 additions and 1 deletions
|
@ -1396,7 +1396,7 @@ var TorrentPeersTable = new Class({
|
||||||
// files
|
// files
|
||||||
|
|
||||||
this.columns['files'].updateTd = function(td, row) {
|
this.columns['files'].updateTd = function(td, row) {
|
||||||
td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace('\n', ';'));
|
td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace(/\n/g, ';'));
|
||||||
td.title = escapeHtml(this.getRowValue(row, 0));
|
td.title = escapeHtml(this.getRowValue(row, 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue