From 8400d9f03aa55b45ceb9fe6d5319e573c012952b Mon Sep 17 00:00:00 2001 From: David Larlet Date: Wed, 14 Jun 2023 12:59:44 -0400 Subject: [PATCH] Even better with a test Refs 4fca2cccca1d887a16d729ed14f5ea130ee00928 --- umap/static/umap/test/Util.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/umap/static/umap/test/Util.js b/umap/static/umap/test/Util.js index f6e9382d..311e25a5 100644 --- a/umap/static/umap/test/Util.js +++ b/umap/static/umap/test/Util.js @@ -166,6 +166,13 @@ describe('L.Util', function () { assert.equal(L.Util.escapeHTML(''), '') }) + it('should not escape geo: links', function () { + assert.equal( + L.Util.escapeHTML(''), + '' + ) + }) + it('should not fail with int value', function () { assert.equal(L.Util.escapeHTML(25), '25') })