jbampton commented on code in PR #7200:
URL: https://github.com/apache/cloudstack/pull/7200#discussion_r1104317804


##########
ui/src/components/view/UploadResourceIcon.vue:
##########
@@ -195,7 +195,7 @@ export default {
       this.options.img = ''
     },
     beforeUpload (file) {
-      if (!/\.(svg|jpg|jpeg|png|bmp|SVG|JPG|PNG)$/.test(file.name)) {
+      if (!/\.(svg|jpg|jpeg|png|bmp|SVG|JPG|JPEG|PNG)$/.test(file.name)) {

Review Comment:
   Better to have a case insensitive regex to match all variations of the file 
extensions.
   
   Even a `.JPeg` is valid it seems



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to