fix: the problem that importing SS URL not support standard format

This commit is contained in:
mzz
2020-11-02 12:37:26 +08:00
committed by GitHub
parent 6c199c1687
commit 9e49a2dbd9
@@ -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