Added System.Range to allowed custom types.

This commit is contained in:
Andrey Shchekin 2017-11-21 00:39:00 +13:00
Родитель 91759377c9
Коммит 77bd641b25
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -221,6 +221,9 @@ namespace SharpLab.Server.Execution {
settings.ApiPolicy = ApiPolicySetup.CreatePolicy();
settings.AllowExplicitLayoutInTypesMatchingPattern = new Regex(settings.AllowExplicitLayoutInTypesMatchingPattern.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;
}))();
}