Skip to content

Commit

Permalink
Fix tag display on entities with parenthesis in their names
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and cedric-anne committed Dec 5, 2023
1 parent a8520bd commit e6d637d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
});
Expand Down

0 comments on commit e6d637d

Please sign in to comment.