Skip to content

Commit 253c5db

Browse files
committed
add missing trim function to figlet extention
1 parent 74d09c0 commit 253c5db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/figlet.js

+4
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,8 @@
9595
function all_include(items, list) {
9696
return items.every(item => list.includes(item));
9797
}
98+
99+
function trim(str) {
100+
return str.replace(/[\s\n]+$/, '').replace(/^\s+\n/, '');
101+
}
98102
});

0 commit comments

Comments
 (0)