diff --git a/doc/screenshots/address_1password.png b/doc/screenshots/address_1password.png index b4ecb71..255862f 100644 Binary files a/doc/screenshots/address_1password.png and b/doc/screenshots/address_1password.png differ diff --git a/doc/screenshots/domain_1password.png b/doc/screenshots/domain_1password.png index 4339747..2636146 100644 Binary files a/doc/screenshots/domain_1password.png and b/doc/screenshots/domain_1password.png differ diff --git a/doc/screenshots/graph_thunderbird.png b/doc/screenshots/graph_thunderbird.png index 9be86c5..03487e5 100644 Binary files a/doc/screenshots/graph_thunderbird.png and b/doc/screenshots/graph_thunderbird.png differ diff --git a/doc/screenshots/settings.png b/doc/screenshots/settings.png index 4873048..8136b04 100644 Binary files a/doc/screenshots/settings.png and b/doc/screenshots/settings.png differ diff --git a/doc/screenshots/usage.png b/doc/screenshots/usage.png index 89b6f41..c508b9a 100644 Binary files a/doc/screenshots/usage.png and b/doc/screenshots/usage.png differ diff --git a/main.ts b/main.ts index 6e7c926..2f1cb95 100644 --- a/main.ts +++ b/main.ts @@ -162,13 +162,12 @@ function create_folder(vault: Vault, base: string) { /* continue regardless of error */ } } -// https://dev.to/jorik/country-code-to-flag-emoji-a21 function flag_emoji(country_code: string): string { - const codePoints = country_code + return country_code .toUpperCase() - .split("") - .map((char) => 127397 + char.charCodeAt(0)); - return String.fromCodePoint(...codePoints); + .replace(/[A-Z]/g, (char) => + String.fromCodePoint(127397 + char.charCodeAt(0)) + ); } function tag_emoji(tag: IvreTag): string | undefined { switch (tag.type) {