Przeglądaj źródła

Merge pull request #1747 from overleaf/hb-graphics-autocomplete-additions

Make image autocomplete file type case insensitive

GitOrigin-RevId: 8a39a600340d8cea7bbfda08d8cc95343c8002ad
Alasdair Smith 7 lat temu
rodzic
commit
cbab60476a

+ 1 - 1
services/web/public/src/ide/graphics/services/graphics.js

@@ -22,7 +22,7 @@ define(['base'], App =>
             __guardMethod__(
               entity != null ? entity.name : undefined,
               'match',
-              o => o.match(/.*\.(png|jpg|jpeg|pdf|eps)/)
+              o => o.match(/.*\.(png|jpg|jpeg|pdf|eps)/i)
             )
           ) {
             const cloned = _.clone(entity)