mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Normalize newlines in test config parser
This commit is contained in:
1 parent
1449bcc353
commit
25dcc8753f
1 file changed
+8
-2
@@ -5,7 +5,13 @@ namespace BepInEx.Configuration.Tests
|
||||
{
|
||||
public class LegacyTestConfigProvider : LegacyConfigurationProvider
|
||||
{
|
||||
public string FileContents { get; set; }
|
||||
private string fileContents;
|
||||
|
||||
public string FileContents
|
||||
{
|
||||
get => fileContents;
|
||||
set => fileContents = value.Replace("\r\n", "\n");
|
||||
}
|
||||
|
||||
public LegacyTestConfigProvider() : base("none")
|
||||
{
|
||||
@@ -13,7 +19,7 @@ namespace BepInEx.Configuration.Tests
|
||||
|
||||
public override IEnumerable<string> ReadAllLines()
|
||||
{
|
||||
return FileContents.Split(Environment.NewLine);
|
||||
return FileContents.Split("\n");
|
||||
}
|
||||
|
||||
public override void Save()
|
||||
|
||||
Reference in new issue
Block a user