pl-fe: update nyaize for russian and polish
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -21,6 +21,10 @@ const nyaize = (text: string) =>
|
||||
.replace(/a/gi, ifAfter('n', x => x === 'A' ? 'YA' : 'ya'))
|
||||
.replace(/ing/gi, ifAfter('morn', x => x === 'ING' ? 'YAN' : 'yan'))
|
||||
.replace(/one/gi, ifAfter('every', x => x === 'ONE' ? 'NYAN' : 'nyan'))
|
||||
// pl-PL
|
||||
.replace(/ł/gi, ifAfter('mia', x => x === 'Ł' ? 'U' : 'u'))
|
||||
// ru-RU
|
||||
.replace(/а/gi, ifAfter('н', x => x === 'А' ? 'Я' : 'я'))
|
||||
// ko-KR
|
||||
.replace(koRegex1, match => !isNaN(match.charCodeAt(0)) ? String.fromCharCode(
|
||||
match.charCodeAt(0) + '냐'.charCodeAt(0) - '나'.charCodeAt(0),
|
||||
|
||||
Reference in New Issue
Block a user