diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 2d460c29d8..383e5a4640 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -893,12 +893,12 @@ help_markdown_rules = RuleList( "pattern": r"\b[rR]ealm[s]?\b", "include_only": {"templates/zerver/help/"}, "exclude": {"templates/zerver/help/change-organization-url.md"}, - # Keycloak uses the term realm as well. - "exclude_pattern": "[Kk]eycloak", "good_lines": ["Organization", "deactivate_realm", "realm_filter"], "bad_lines": ["Users are in a realm", "Realm is the best model"], "description": "Realms are referred to as Organizations in user-facing docs.", - "exclude_pattern": "-realm-", + # Keycloak uses the term realm as well. + # Additionally, we allow -realm- as that appears in /api/ doc URLs. + "exclude_pattern": "(-realm-|[kK]eycloak)", }, ], length_exclude=markdown_docs_length_exclude,