From da1fd91a001f3f6a83410566d19e0be4aa3893e4 Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 20 May 2022 13:58:24 +0200 Subject: [PATCH] [bug][flags] fix queerowy&a&e&u --- src/classes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {