Apply the pattern.filter to every alias (including those without an extension)

Currently the .filter only applies to the aliases with an extension. But there are also aliases without an extension. If you want to create a filter that affects the alias itself, this means you have to use the extension version. This patch fixes that issue.
I'm being nit-picky here, but can what do you think of a more verbose name? Maybe `applyFilterToAlias`?