Skip to content

Commit

Permalink
Merge pull request #1055 from oxygen-dioxide/yaml-fix
Browse files Browse the repository at this point in the history
fix strings startswith "\t- " in yaml
  • Loading branch information
stakira authored Mar 28, 2024
2 parents e930514 + 8678444 commit d132419
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpenUtau.Core/OpenUtau.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PackageReference Include="UTF.Unknown" Version="2.5.1" />
<PackageReference Include="Vortice.DXGI" Version="2.4.2" />
<PackageReference Include="WanaKana-net" Version="1.0.0" />
<PackageReference Include="YamlDotNet" Version="13.1.0" />
<PackageReference Include="YamlDotNet" Version="15.1.2" />
<PackageReference Include="NetMQ" Version="4.0.1.12" />
</ItemGroup>
<ItemGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
Expand Down
4 changes: 4 additions & 0 deletions OpenUtau.Test/Core/USTx/UstxYamlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public void SpecialLyric() {
yaml = Yaml.DefaultSerializer.Serialize(new UNote() { lyric = "-," });
actual = Yaml.DefaultDeserializer.Deserialize<UNote>(yaml);
Assert.Equal("-,", actual.lyric);

yaml = Yaml.DefaultSerializer.Serialize(new UNote() { lyric = "\t- asdf" });
actual = Yaml.DefaultDeserializer.Deserialize<UNote>(yaml);
Assert.Equal("\t- asdf", actual.lyric);
}
}
}

0 comments on commit d132419

Please sign in to comment.