diff --git a/src/classes.js b/src/classes.js index 13d0ad0c..35da67ff 100644 --- a/src/classes.js +++ b/src/classes.js @@ -417,7 +417,7 @@ export class Pronoun { } format(str) { - return str.replace(/{[^}]+}/g, m => this.morphemes[m.substring(1, m.length - 1)] || ''); + return str.replace(/{[^}]+}/g, m => (this.morphemes[m.substring(1, m.length - 1)] || '').split('&')[0]); } toArray() {