mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
fix urls preventing proper closure of bold and color tags
This commit is contained in:
parent
3fc80efd7c
commit
44c20b327d
2 changed files with 4 additions and 4 deletions
4
client/js/libs.min.js
vendored
4
client/js/libs.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -41,8 +41,8 @@ function uri(text) {
|
|||
}
|
||||
var split = url.split("<");
|
||||
url = "<a href='" + split[0].replace(/^www/, "//www") + "' target='_blank'>" + split[0] + "</a>";
|
||||
if (split[1]) {
|
||||
url += "<" + split[1];
|
||||
if (split.length > 1) {
|
||||
url += "<" + split.slice(1).join("<");
|
||||
}
|
||||
return url;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue