diff options
| author | RblSb <msrblsb@gmail.com> | 2020-04-24 05:38:12 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-04-24 05:38:12 +0300 |
| commit | 95688a8494e2e71aeb4c9e3a1037c4848a90cd21 (patch) | |
| tree | 7d90736a6998641a895a2b989746337a7d4bdd12 | |
| parent | af0b3a3fb9a679a0e1b32d18b67a2f5b0d43f5dd (diff) | |
Allow spaces in multilinks
| -rw-r--r-- | res/client.js | 2 | ||||
| -rw-r--r-- | src/client/Main.hx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/res/client.js b/res/client.js index 9903f55..89d0d81 100644 --- a/res/client.js +++ b/res/client.js @@ -1006,7 +1006,7 @@ client_Main.prototype = { mediaUrl.value = ""; this.settings.latestLinks.push(url); client_Settings.write(this.settings); - var _this_r = new RegExp(",(https?)","g".split("u").join("")); + var _this_r = new RegExp(", ?(https?)","g".split("u").join("")); var links = url.replace(_this_r,"|$1").split("|"); this.handleUrlMasks(links); if(!atEnd) { diff --git a/src/client/Main.hx b/src/client/Main.hx index f8579b1..5ee14d6 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -192,7 +192,7 @@ class Main { mediaUrl.value = ""; settings.latestLinks.push(url); Settings.write(settings); - final url = ~/,(https?)/g.replace(url, "|$1"); + final url = ~/, ?(https?)/g.replace(url, "|$1"); final links = url.split("|"); handleUrlMasks(links); // if videos added as next, we need to load them in reverse order |
