You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$folderFilter = new SilverStripe\Assets\FolderNameFilter();
$folderFilter->filter('foo.-bar'); // foo--bar
$folderFilter->filter('foo--bar'); // foo-bar
I assume this is due to the merge order of the replacement pattern config. From my point of view it would be better to perform replacements until the name is stable as there might be complex dependencies between patterns that require multiple passes. Something like this should work in FileNameFilter#filter:
Tested using silverstripe/assets v1.6.1:
I assume this is due to the merge order of the replacement pattern config. From my point of view it would be better to perform replacements until the name is stable as there might be complex dependencies between patterns that require multiple passes. Something like this should work in FileNameFilter#filter:
The text was updated successfully, but these errors were encountered: