Skip to content

Commit

Permalink
Merge pull request #1 from 365talents/feat/add-roumanie
Browse files Browse the repository at this point in the history
feat: Add Roumanie
  • Loading branch information
ducher authored Jul 19, 2023
2 parents 5ba76f3 + a57310e commit 3fbc047
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/countries.csv
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ PW;Palau;Palau, Belau, Pelew
PY;Paraguay;Paragu[a][yi]
QA;Qatar;Qatar
RE;Reunion;R[e]uni[o]n
RO;Romania;Rom[a]n[i](a|en), Rumunsko
RO;Romania;Rom[a]n[i](a|en), Rumunsko, Roumanie
RU;Russia;Russian Federation, Russ?i[ae], Россия, России, Rossiya, Rusko
RW;Rwanda;R[wu]anda
SA;Saudi Arabia;Saudi Arabi[ae]
Expand Down
9 changes: 9 additions & 0 deletions examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ var mutations = countryDetector.detect("FR: J'ai vécu en Italie. EN: I lived in
]
*/

// handles Roumanie in French
var romania = countryDetector.detect("FR: J'ai vécu en Roumanie.");
/*
[
{ iso3166: 'RO', name: 'Romania', type: 'country', matches: [ 'Roumanie'] }
]
*/
console.log(romania);

// handles special characters and emojis
var special = countryDetector.detect("Adoro❤️ o 🇧🇷Rio~de~Janeiro💃🏼 !");
/*
Expand Down

0 comments on commit 3fbc047

Please sign in to comment.