diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index fdbf482a..b03979f8 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -129,7 +129,7 @@ L.Util.toHTML = (r, options) => { // images r = r.replace(/{{([^\]|]*?)}}/g, '') - r = r.replace(/{{([^|]*?)\|(\d*?)}}/g, '') + r = r.replace(/{{([^|]*?)\|(\d*?)(px)?}}/g, '') //Unescape http r = r.replace(/(h_t_t_p)/g, 'http') diff --git a/umap/static/umap/test/Util.js b/umap/static/umap/test/Util.js index a497a459..07d2b284 100644 --- a/umap/static/umap/test/Util.js +++ b/umap/static/umap/test/Util.js @@ -108,7 +108,7 @@ describe('L.Util', function () { it('should handle image with width', function () { assert.equal( L.Util.toHTML('A simple image: {{http://osm.org/pouet.png|100}}'), - 'A simple image: ' + 'A simple image: ' ) })