From d26097762b11bfb9be0d64fc8b9c47be6b3d9f39 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Tue, 28 Apr 2020 11:29:33 -0700 Subject: add >w< and stutter + typings, v1.0.4 --- src/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit v1.2.3