Character removal bug in 4.9.3
Re: Character removal bug in 4.9.3
What is your custom format?
			
			
									
						
										
						Re: Character removal bug in 4.9.3
{t} yields .exe as expected:
After removing illegal characters the result is exe which is expected too (file names must not start with . because that denotes hidden files) but perhaps isn't exactly what you want in this particular use case:
  You may prefer to explicitly specify exactly what you want to remove via custom regex:
 You may prefer to explicitly specify exactly what you want to remove via custom regex:
			
			
									
						
										
						Code: Select all
{t}Code: Select all
{t.removeIllegalCharacters()} You may prefer to explicitly specify exactly what you want to remove via custom regex:
 You may prefer to explicitly specify exactly what you want to remove via custom regex:
Code: Select all
{t.removeAll(/[!?]/)}Re: Character removal bug in 4.9.3
Previous revisions just didn't account for leading . at all, allowing Linux and Mac users to accidentally create hidden files and folders (e.g. if the series name starts with . then series folder disappears) which is now fixed.
 String.removeIllegalCharacters() can't know the context in which it is used. Internally, it's used for validating file names as best as possible, which now includes stripping leading . as well.
 String.removeIllegalCharacters() can't know the context in which it is used. Internally, it's used for validating file names as best as possible, which now includes stripping leading . as well.