From 9e49a2dbd9415d9e2d08772128b71295b5cf20be Mon Sep 17 00:00:00 2001 From: mzz Date: Mon, 2 Nov 2020 12:37:26 +0800 Subject: [PATCH] fix: the problem that importing SS URL not support standard format --- .../app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt index 166b48af..09e64630 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt @@ -318,7 +318,7 @@ object AngConfigManager { result = Utils.decode(result) } - val legacyPattern = "^(.+?):(.*)@(.+?):(\\d+?)$".toRegex() + val legacyPattern = "^(.+?):(.*)@(.+?):(\\d+?)/?$".toRegex() val match = legacyPattern.matchEntire(result) if (match == null) { return R.string.toast_incorrect_protocol