INTERACT FORUM

More => Old Versions => JRiver Media Center 22 for Windows => Topic started by: Spike1000 on January 22, 2017, 04:03:09 am

Title: Inconsistent behaviour of the 'Replace' function (possible bug or is it me?)
Post by: Spike1000 on January 22, 2017, 04:03:09 am
This test demonstrates the issue I've seen.

Take these two tag fields:
Artist:       Artist1/Artist2
Album Artist:    Artist1/Artist2

Use these functions to replace the '/' in each field with '; ' (semi colon and a space)

=replace([Artist],//,; )
=replace([Album Artist],//,; )

Result
Artist:       Artist1; Artist2
Album Artist:    Artist1;Artist2

In Artist the space is there after the ; in Album Artist the space is missing.

Is it my function or an issue with MC (ver 22.0.55) as both results should be identical?

Spike
Title: Re: Inconsistent behaviour of the 'Replace' function (possible bug or is it me?)
Post by: leezer3 on January 22, 2017, 07:05:35 am
Album Artist is a semi-colon deliminated list field.

I'd assume that some internal logic is removing the padding from before the field spacer, so not really a bug IMHO.
Title: Re: Inconsistent behaviour of the 'Replace' function (possible bug or is it me?)
Post by: Spike1000 on January 22, 2017, 11:39:45 am
Ah ha, that'll explain it. Thanks for that.

Spike