diff options
Diffstat (limited to 'src/app.ts')
| -rw-r--r-- | src/app.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |