Merge pull request #725 from mzz2017/patch-1

fix: the problem that importing SS URL not support standard format
This commit is contained in:
2dust
2020-11-05 14:30:56 +08:00
committed by GitHub

View File

@@ -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