Updated dependencies and fixed some code scanning findings

This commit is contained in:
n1474335 2023-03-13 17:51:25 +00:00
parent 5d3c66f615
commit 61501a7cbc
6 changed files with 69 additions and 66 deletions

View file

@ -38,7 +38,7 @@ class HTMLCategory {
* @returns {string}
*/
toHtml() {
const catName = "cat" + this.name.replace(/[\s/-:_]/g, "");
const catName = "cat" + this.name.replace(/[\s/\-:_]/g, "");
let html = `<div class="panel category">
<a class="category-title" data-toggle="collapse" data-target="#${catName}">
${this.name}