Files
SPT-Server-Build/Libraries/FodyWeavers/JsonExtensionData.Fody/ConfigReader.cs
T
clodanSPT cab8fa82a2 Json extension data fody (#340)
* Added a new Fody plugin to add to every model class the JsonExtensionData attribute

* retargeted fody plugin to netstandard for msbuild runtime

* Fixed runtime issue

* Fixed property check for new extension data properties

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 12:15:44 +01:00

35 lines
902 B
C#

using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace JsonExtensionData.Fody;
public partial class ModuleWeaver
{
public List<Regex> IncludeNamespacesRegex = new();
public void ReadConfig()
{
ReadExcludes();
}
void ReadExcludes()
{
var includeNamespacesElement = Config.Element("IncludeNamespacesRegex");
if (includeNamespacesElement != null)
{
foreach (var item in includeNamespacesElement.Value
.Split(
[
"\r\n",
"\n"
],
StringSplitOptions.RemoveEmptyEntries)
.NonEmpty())
{
IncludeNamespacesRegex.Add(new Regex(item));
}
}
}
}