allow lower case global parameter value

This commit is contained in:
金戟 2021-02-20 21:03:18 +08:00
parent a1086ff402
commit 23a0a0cd90

View File

@ -14,7 +14,7 @@ public enum MockScope {
public static MockScope of(String scope) {
try {
return valueOf(scope);
return valueOf(scope.toUpperCase());
} catch (IllegalArgumentException e) {
return GLOBAL;
}