Skip to content

Commit

Permalink
fix: fix #137 (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com>
  • Loading branch information
motss authored Sep 25, 2023
1 parent fdce315 commit d7bcc78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/diacritics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export const diacritics: Diacritics[] = [
{ letter: 'p', diacritics: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g },
{ letter: 'q', diacritics: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g },
{ letter: 'r', diacritics: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g },
{ letter: 's', diacritics: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g },
{ letter: 's', diacritics: /[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g },
{ letter: 'ss', diacritics: /\u00DF/g },
{ letter: 't', diacritics: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g },
{ letter: 'th', diacritics: /\u00FE/g },
{ letter: 'tz', diacritics: /\uA729/g },
Expand Down
2 changes: 1 addition & 1 deletion src/tests/normalize-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe(normalizeSync.name, () => {
// non-accented characters (Latin-1 Supplement)
{ input: `tromsø`, output: 'tromso' },
{ input: `\u00d8`, output: 'O' },
{ input: `Muße`, output: 'Muse' },
{ input: `Muße`, output: 'Musse' },

// repeated characters
{ input: `éééé`, output: 'eeee' },
Expand Down
2 changes: 1 addition & 1 deletion src/tests/normalize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe(normalize.name, () => {
// non-accented characters (Latin-1 Supplement)
{ input: `tromsø`, output: 'tromso' },
{ input: `\u00d8`, output: 'O' },
{ input: `Muße`, output: 'Muse' },
{ input: `Muße`, output: 'Musse' },

// repeated characters
{ input: `éééé`, output: 'eeee' },
Expand Down

0 comments on commit d7bcc78

Please sign in to comment.