Skip to content

Commit

Permalink
add missing trim function to figlet extention
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 18, 2024
1 parent 74d09c0 commit 253c5db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/figlet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/, '');
}
});

0 comments on commit 253c5db

Please sign in to comment.