iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.41k stars 1.42k forks source link

Fix switch to new language after manual input #582

Open gotcha opened 2 years ago

gotcha commented 2 years ago

oldPhrase must be normalized before searching for words. If not done, indexOf returns -1 on un-normalized words

The unnormalized words cannot be converted which induce broken mnemonic in new language.

gotcha commented 2 years ago

Is there an issue with the proposed fix ?

Do I need to give more details ?