Filename mask: (which has worked for x years without any changes)
Results in:

Notice the whitespace in the album and song names still appears. This should have been replaced with an: ‘-’
Filename mask: (which has worked for x years without any changes)
Results in:

Notice the whitespace in the album and song names still appears. This should have been replaced with an: ‘-’
Can you show me contents of replaceWhitespace function and run Create Support Files so I can see exactly what has been run please.
function replaceWhitespace(value, replace) {
return value.replace(/ /g, replace);
}
This function has worked now for > 2 years…
Hmm., weird I had a quick look but could not see the reason, I will look in more depth tomorrow.
Ok I have confirmed that it works in previous version and no longer works so must be related to this change - will investigate further.
Ok, the issue is we handle Album Artist, Album and Title fields a bit specially because we sometimes have to shorten them in a consistent way for all files in grouping if new filename from mask is too long
So the Javascript function itself is not an issue, the problem is that when it is applied it is not actually being applied to the value but a placeholder. This is demonstrated by this screenshot that shows replaceWhiteSpace() works fine when applied to the Composer field which is not handled specially but not Title which is.
Raised an issue and I will work on a fix.
Now fixed and available in SongKong 12.2.1