Added System.Range to allowed custom types.
This commit is contained in:
Родитель
91759377c9
Коммит
77bd641b25
|
@ -221,6 +221,9 @@ namespace SharpLab.Server.Execution {
|
||||||
settings.ApiPolicy = ApiPolicySetup.CreatePolicy();
|
settings.ApiPolicy = ApiPolicySetup.CreatePolicy();
|
||||||
settings.AllowExplicitLayoutInTypesMatchingPattern = new Regex(settings.AllowExplicitLayoutInTypesMatchingPattern.ToString(), RegexOptions.Compiled);
|
settings.AllowExplicitLayoutInTypesMatchingPattern = new Regex(settings.AllowExplicitLayoutInTypesMatchingPattern.ToString(), RegexOptions.Compiled);
|
||||||
settings.AllowPointerOperationsInTypesMatchingPattern = new Regex(settings.AllowPointerOperationsInTypesMatchingPattern.ToString(), RegexOptions.Compiled);
|
settings.AllowPointerOperationsInTypesMatchingPattern = new Regex(settings.AllowPointerOperationsInTypesMatchingPattern.ToString(), RegexOptions.Compiled);
|
||||||
|
settings.AllowCustomTypesMatchingPatternInSystemNamespaces = new Regex(
|
||||||
|
settings.AllowCustomTypesMatchingPatternInSystemNamespaces.ToString() + @"|System\.Range", RegexOptions.Compiled
|
||||||
|
);
|
||||||
return settings;
|
return settings;
|
||||||
}))();
|
}))();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче