Open XiaotianNetlift opened 4 years ago
The Uno.Extensions.StringExtensions.Format method doesn't properly unescape {{ o }} from nested formatting.
Uno.Extensions.StringExtensions.Format
{{
}}
string.Format(CultureInfo.CurrentCulture, "{{0:0.00 {0};0.00 {0};FREE}}", "$").Dump(); Uno.Extensions.StringExtensions.Format(CultureInfo.CurrentCulture, "{{0:0.00 {0};0.00 {0};FREE}}", "$").Dump(); string.Format(CultureInfo.CurrentCulture, "{{0:0.00 {0}}}", "$").Dump(); Uno.Extensions.StringExtensions.Format(CultureInfo.CurrentCulture, "{{0:0.00 {0}}}", "$").Dump();
output:
{0:0.00 $;0.00 $;FREE} {{0:0.00 $;0.00 $;FREE}} {0:0.00 $} {{0:0.00 $}
Nuget Package: Uno.Core Package Version(s): 2.0.0
I'm submitting a...
Current behavior
The
Uno.Extensions.StringExtensions.Format
method doesn't properly unescape{{
o}}
from nested formatting.Expected behavior
Minimal reproduction of the problem with instructions
output:
Environment
Nuget Package: Uno.Core Package Version(s): 2.0.0