diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-12 22:32:02 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-12 22:32:02 +0300 |
| commit | e43601ac08900705e5b095f7a059ee8483151226 (patch) | |
| tree | 5e2f7b91d249fb40db3ea97d8678c4f71fab3524 /web/assets | |
| parent | bc29d7a252379389cafd93e2bc83fa71297ef37c (diff) | |
support IPv6 address in Link
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/model/outbound.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 46390054..c50dc240 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -708,7 +708,7 @@ class Outbound extends CommonClass { let data = link.split('?'); if(data.length != 2) return null; - const regex = /([^@]+):\/\/([^@]+)@([^:]+):(\d+)\?(.*)$/; + const regex = /([^@]+):\/\/([^@]+)@(.+):(\d+)\?(.*)$/; const match = link.match(regex); if (!match) return null; |
