Browse Source

Fix Вы problem

Ryan Wright 1 week ago
parent
commit
a0954c06ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      checkLength.js

+ 1 - 1
checkLength.js

@@ -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;