diff --git a/js/figlet.js b/js/figlet.js index 8ab3e658..8dd724f8 100644 --- a/js/figlet.js +++ b/js/figlet.js @@ -95,4 +95,8 @@ function all_include(items, list) { return items.every(item => list.includes(item)); } + + function trim(str) { + return str.replace(/[\s\n]+$/, '').replace(/^\s+\n/, ''); + } });