We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036279c commit 49788c7Copy full SHA for 49788c7
src/sentry/utils/display_name_filter.py
@@ -61,11 +61,7 @@ def _has_cta(lowered: str) -> bool:
61
62
63
def check_spam_display_name(name: str) -> str | None:
64
- """Check if a user-controlled display name matches known spam patterns.
65
-
66
- Returns a user-facing error string listing the matched categories
67
- if 2+ distinct signal categories fire, or None if the name is clean.
68
- """
+ """Return an error string if the name matches 2+ spam categories, else None."""
69
lowered = name.lower()
70
matched_labels: list[str] = [label for label, check in _CATEGORIES if check(lowered)]
71
if len(matched_labels) >= 2:
0 commit comments