ethers.js/packages/wordlists/lib/wordlist.js

15 lines
408 B
JavaScript
Raw Permalink Normal View History

2022-04-11 17:14:19 -04:00
import { defineProperties } from "@ethersproject/properties";
export class Wordlist {
constructor(locale) {
defineProperties(this, { locale });
}
// Subclasses may override this
split(mnemonic) {
return mnemonic.toLowerCase().split(/ +/g);
}
// Subclasses may override this
join(words) {
return words.join(" ");
}
}
//# sourceMappingURL=wordlist.js.map