I find that $validate(aaa \ bbb,_) returns not aaa _ bbb as expected, and as observed on versions until recently, but aaa\ bbb (note also the missing space before </b>).
Bug?
Also, $validate(aaa \ bbb,_)\t returns aaa \ bbb\t i.e. does not omit that space.
The backslash is a valid character for separating directories in a file path. The spaces before a backslash will be removed anyway, but I'll try to make this more consistent in the UI with a future release.
The backslash is a valid character for separating directories in a file path.
Backslash is an invalid character in a fileNAME, and since $validate() is described as "Remove invalid characters from filename", $validate() should remove backslash.
I find that $validate(aaa \ bbb,) returns ... aaa\ bbb (note ... the missing space
Bug? $validate(aaa \ bbb,)\t returns aaa \ bbb\t i.e. does not omit that space.
Any thoughts on specifically this missing space, Florian?
... having this invalid string
"D:;\FOLDER;<FOLDER>\..;A:?/"
That's a cruel test... Well done!
... then preview shows, e. g.
"D:\Programme\Mp3tag\D;\FOLDER;;A.mp3"
Looks perfect cleaned and canonicalized.
Likewise for me on your example:
Please look into again.
Let's not be too hasty here. The dialog's live preview has never shown the full path, just the part of the path corresponding to the Format String, validated. I think careful consideration is needed before changing the design intent.
In the example Detlev was referring to, the folder was already party canonicalized which was is also the case for the example chrisjj brought up. Thanks for pointing!
Regarding my example string ...
From
D:;\FOLDER;<FOLDER>\..;A:?/
now cleaned and canonicalized to
D;\FOLDER;;A.mp3
I noticed that the colon at position 2 was removed by Mp3tag v2.43c.
Does this work without failures under all circumstances that may come up in Mp3tag?