Browse Source

Remove unnecessary escape character

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
1f1cabd144
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/private/scripts/misc.js

2
src/webui/www/private/scripts/misc.js

@ -162,7 +162,7 @@ window.qBittorrent.Misc = (function() { @@ -162,7 +162,7 @@ window.qBittorrent.Misc = (function() {
* JS counterpart of the function in src/misc.cpp
*/
const parseHtmlLinks = function(text) {
const exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
const exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/ig;
return text.replace(exp, "<a target='_blank' href='$1'>$1</a>");
}

Loading…
Cancel
Save