mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 18:08:11 +09:00
fix: new words
This commit is contained in:
@@ -26,6 +26,12 @@ export function germanify(word: string): string {
|
||||
return word.replace('c', 'k').replace('C', 'K');
|
||||
}
|
||||
|
||||
export function njoin(lhs: string, rhs: string): string {
|
||||
return lhs + rhs.replace(new RegExp(`^${lhs[-1]}`, 'i'), '');
|
||||
export function njoin(
|
||||
lhs: string,
|
||||
rhs: string,
|
||||
{elision = true}: {elision?: boolean} = {},
|
||||
): string {
|
||||
return elision
|
||||
? lhs + rhs.replace(new RegExp(`^${lhs[-1]}`, 'i'), '')
|
||||
: lhs + rhs;
|
||||
}
|
||||
|
@@ -1380,7 +1380,6 @@ export const zones = [
|
||||
'teva',
|
||||
'tf',
|
||||
'tg',
|
||||
'th',
|
||||
'thai',
|
||||
'thd',
|
||||
'theater',
|
||||
|
Reference in New Issue
Block a user