AEM Dispatcher filter - how to make case insensitive?
Hi I'm sure this question must have been answered or explained somewhere but I've not found it yet ![]()
The Adobe product pages explain Configuring Dispatcher. I'd like to filter out requests based on file extension similar to the example in the documentation,
Example filter: Using Regular Expressions
This filter enables extensions in non-public content directories using a regular expression, defined here between single quotes:
1 | /005 { /type "allow" /extension '(css|gif|ico|js|png|swf|jpe?g)' } |
I'd like our rule to be case insensitive, so that files uploaded, with naming such as 'foo.jpg', 'foo.JpeG' and 'foo.JPG' are all allowed by a filter rule like this. As it's a regular expression, I would expect to be able to amend the regex example to '(css|gif|ico|js|png|swf|jpe?g)/i' but this doesn't seem to work.
Does anyone know how to make this extension rule case insensitive?