I am working with escape-ed strings, and there seems to be an issue with parsing new lines (although I haven't tested with other escaped characters).
A colleague has also been able to reproduce this issue.
- Code: Select all
var text="Foo\nFoo\nBar\nFoo\nBar"
//tested with '\r\n' and '\n'
Label1.Text = text.Unescape
Produces the correct result of:
Foo
Foo
Bar
Foo
Bar
- Code: Select all
var text="FooBar\nFoo\nBar\nFoo\nBar"
Label1.Text = text.Unescape
produces the incorrect result of:
FooBar
Foo Bar
Foo Bar
Through further testing, it seems like the length of text before the first escaped character must be longer than any further text between escaped characters.
WD 6.0.4 Free
W10 Pro v1709 build 16299.248