Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat(core): added even more currencies

Elijah Potter00a5c2fd8349
diff --git a/harper-core/src/currency.rs b/harper-core/src/currency.rs
index 4121c810a..affeb0685 100644
--- a/harper-core/src/currency.rs
+++ b/harper-core/src/currency.rs
@@ -13,6 +13,14 @@ pub enum Currency {
Lira,
// £
Pound,
+ // ¥
+ Yen,
+ // ฿
+ Baht,
+ // ₩
+ Won,
+ // ₭,
+ Kip,
}
impl Currency {
@@ -23,6 +31,10 @@ impl Currency {
'₽' => Self::Ruble,
'₺' => Self::Lira,
'£' => Self::Pound,
+ '¥' => Self::Yen,
+ '฿' => Self::Baht,
+ '₩' => Self::Won,
+ '₭' => Self::Kip,
_ => return None,
};
@@ -36,6 +48,10 @@ impl Currency {
Self::Ruble => '₽',
Self::Lira => '₺',
Self::Pound => '£',
+ Self::Yen => '¥',
+ Self::Baht => '฿',
+ Self::Won => '₩',
+ Self::Kip => '₭',
}
}
}