diff --git a/docs/bundle.js b/docs/bundle.js index eb3d70564..c44bc871f 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -5,6 +5,7 @@ s.forEach(element => { element.parentElement.appendChild(button); button.addEventListener ("click", function() { - console.log(element.textContent); - }); + var text = element.textContent.replace(/\/\*(.|[\r\n])*?\*\//g, '').replace(/\/\/.*/gm, ''); + console.log(text); + }); }); \ No newline at end of file