Fixup spam regex
This commit is contained in:
parent
0ce2a6d79c
commit
7e83910b29
1 changed files with 1 additions and 1 deletions
|
@ -1567,7 +1567,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||
return;
|
||||
}
|
||||
} catch (final java.util.regex.PatternSyntaxException e) { } // Not supported on old android
|
||||
if (body.length() > 320 || !m.getLinks().isEmpty() || (!"Cyrl".equals(script) && body.matches(".*\\p{IsCyrillic}.*")) || body.matches(".*(?:\\n.*\\n.*\\n|[Aa]\\s*d\\s*v\\s*v\\s*e\\s*r\\s*t|[Pp]romotion|[Dd][Dd][Oo][Ss]|[Ee]scrow|payout|seller|write me when will be|v seti|[Pp]rii?vee?t|there\?|online\?|exploit|bit\\.ly|goo\\.gl|tinyurl\\.com|tiny\\.cc|lc\\.chat|is\\.gd|soo\\.gd|s2r\\.co|clicky\\.me|budrul\\.com|bc\\.vc|uguu\\.se).*")) {
|
||||
if (body.length() > 320 || !m.getLinks().isEmpty() || (!"Cyrl".equals(script) && body.matches(".*\\p{IsCyrillic}.*")) || body.matches(".*(?:\\n.*\\n.*\\n|[Aa]\\s*d\\s*v\\s*v\\s*e\\s*r\\s*t|[Pp]romotion|[Dd][Dd][Oo][Ss]|[Ee]scrow|payout|seller|write me when will be|v seti|[Pp]rii?vee?t|there\\?|online\\?|exploit|bit\\.ly|goo\\.gl|tinyurl\\.com|tiny\\.cc|lc\\.chat|is\\.gd|soo\\.gd|s2r\\.co|clicky\\.me|budrul\\.com|bc\\.vc|uguu\\.se).*")) {
|
||||
anyMatchSpam = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue