Schwitzermod lol

This commit is contained in:
Flummi
2018-11-07 18:36:22 +01:00
parent 88dc71ea9b
commit 4afe02ffe8
2 changed files with 9 additions and 1 deletions

4
src/inc/schwitzer.mjs Normal file
View File

@ -0,0 +1,4 @@
export function schwitzer(text) {
text = text.split(" ");
return text.map(word => word.match(/(i|l)$/gm) ? word : `${word}li`).join(" ")
}