Skip to content
Snippets Groups Projects
Commit ddd7b046 authored by syuilo's avatar syuilo
Browse files

korean nyaize

parent 3c4bae76
No related branches found
No related tags found
No related merge requests found
......@@ -7,5 +7,7 @@ export function nyaize(text: string): string {
// ko-KR
.replace(/[나-낳]/g, match => String.fromCharCode(
match.codePointAt(0)! + ''.charCodeAt(0) - ''.charCodeAt(0)
));
))
.replace(/(다$)|((?=\.))|((?= ))|((?=!))|((?=\?))/gm, '다냥')
.replace(/((?=\?))|(야$)|((?= ))/gm, '');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment