Cleaning the string fails when string contains bracket and "preserve" option is set.
@@ -1804,7 +1804,15 @@ HTML;
[
'clean!_me.tar.gz', ['preserve' => '.'],
'clean-me.tar.gz'
- ]
+ ],
+ [
+ 'cl#ean(me', [],
+ 'cl-ean-me'
+ 'cl#ean(me.jpg', ['preserve' => '.'],
+ 'cl-ean-me.jpg'
];
}