mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
CW-686-polyseed-language-issues (#2098)
* feat: Fix space for japanese seed * feat: Fix space for japanese seed * feat: Upgrade Polyseed version with improved jp support * feat: Fix monero legacy seed language falling back to english
This commit is contained in:
@@ -92,7 +92,8 @@ class ValidatableAnnotatedEditableTextState extends EditableTextState {
|
||||
|
||||
List<Annotation> getRanges() {
|
||||
final result = <Annotation>[];
|
||||
final text = textEditingValue.text;
|
||||
// Replace Ideographic Space (U+3000) with a normal space
|
||||
final text = textEditingValue.text.replaceAll("\u3000", " ");
|
||||
final source = text
|
||||
.split(' ')
|
||||
.map((word) {
|
||||
|
||||
@@ -60,7 +60,7 @@ abstract class WalletCreationVMBase with Store {
|
||||
final SeedSettingsViewModel seedSettingsViewModel;
|
||||
|
||||
bool isPolyseed(String seed) =>
|
||||
(type == WalletType.monero || type == WalletType.wownero) &&
|
||||
[WalletType.monero, WalletType.wownero].contains(type) &&
|
||||
(Polyseed.isValidSeed(seed) || (seed.split(" ").length == 14));
|
||||
|
||||
bool nameExists(String name) => walletCreationService.exists(name);
|
||||
|
||||
Reference in New Issue
Block a user