From e6d637d048d6e22308f86e6df504706e198d6e44 Mon Sep 17 00:00:00 2001 From: AdrienClairembault Date: Thu, 9 Nov 2023 11:28:09 +0100 Subject: [PATCH] Fix tag display on entities with parenthesis in their names --- js/entity.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/entity.js b/js/entity.js index e5bcef3..e7c2379 100644 --- a/js/entity.js +++ b/js/entity.js @@ -56,11 +56,7 @@ var setEntityTag = function() { }, success: function(response) { entity_element.html(function() { - if ($(this).html().indexOf(')') > 0) { - return $(this).html().replace(/\)$/, response + ')'); - } else { - return $(this).html() + response; - } + return $(this).html() + response; }); } });