|
@@ -49,7 +49,7 @@ function mainAct() {
|
|
}
|
|
}
|
|
|
|
|
|
function you() {
|
|
function you() {
|
|
- const youRegex = /\s(Вы|Вас|Вам)\s/g;
|
|
|
|
|
|
+ const youRegex = /(?<!^|\.\s|\?\s|!\s)(Вы|Вас|Вам)\s/g;
|
|
const youMatch = youRegex.exec(content);
|
|
const youMatch = youRegex.exec(content);
|
|
if (!youMatch) return false;
|
|
if (!youMatch) return false;
|
|
const line = content.substring(0, youMatch.index).split("\n").length;
|
|
const line = content.substring(0, youMatch.index).split("\n").length;
|