aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-28 11:29:33 -0700
committer8cy <[email protected]>2020-04-28 11:29:33 -0700
commitd26097762b11bfb9be0d64fc8b9c47be6b3d9f39 (patch)
tree66bdc0043d1314baa136894f0846633c08d23149 /src
parentchange readme output, v1.0.3 (diff)
downloadnode-uwufy-d26097762b11bfb9be0d64fc8b9c47be6b3d9f39.tar.xz
node-uwufy-d26097762b11bfb9be0d64fc8b9c47be6b3d9f39.zip
add >w< and stutter + typings, v1.0.4
Diffstat (limited to 'src')
-rw-r--r--src/app.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index 9919eb4..f28037f 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -1,6 +1,12 @@
const uwufy = (input: string): string => {
input = input.replace(/(?:l|r)/g, 'w');
input = input.replace(/(?:L|R)/g, 'W');
+ input = input.replace(/!+/g, ` >w< `);
+ let f = Math.random() < 0.25
+ if (f) {
+ let c = input.charAt(0)
+ input = c + '-' + input
+ }
return input;
}
export = uwufy; \ No newline at end of file