Merge pull request #253 from codl/fix/bold+color+url
Fix urls preventing proper closure of bold and color tags
This commit is contained in:
commit
277887382c
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 New Issue
Block a user