Merge pull request #725 from mzz2017/patch-1
fix: the problem that importing SS URL not support standard format
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user