added svg extension

this is what triggered the re-write of the regex code in the first place. the original code (in controllers/admin.php) generated a regex similar to '/abc|def|ghi/i' which attempts to match the extensions '/abc', 'def', 'ghi/' because it's passed to a RegExp(..) object