From d36543367ef42224a5655dbd86a8e38c0ae94448 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 20 May 2016 09:52:32 -0500 Subject: [PATCH] Issue #1055. Include bmp and gif in the "remove image upload" regex. --- webcompat/static/js/lib/bugform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcompat/static/js/lib/bugform.js b/webcompat/static/js/lib/bugform.js index 2e1d1e29c..b0d5338c4 100644 --- a/webcompat/static/js/lib/bugform.js +++ b/webcompat/static/js/lib/bugform.js @@ -334,7 +334,7 @@ function BugForm() { // Note: this could fail in weird ways depending on how // the user has edited the descField. this.descField.val(function(idx, value) { - return value.replace(/!\[.+\.jpe*g\)$/, ''); + return value.replace(/!\[.+\.(?:bmp|gif|jpe*g*)\)$/, ''); }); }, this)); };