diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index ad7a1db6d5..e32a55cb54 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -534,18 +534,15 @@ def build_custom_checkers(by_lang): 'description': "The S in Terms of Service is capitalized"}, ]) + comma_whitespace_rule html_rules = whitespace_rules + prose_style_rules + [ - {'pattern': 'placeholder="[^{]', + {'pattern': 'placeholder="[^{](?:(?!\.com).)+$', 'description': "`placeholder` value should be translatable.", 'exclude_line': [('templates/zerver/register.html', 'placeholder="acme"'), ('templates/zerver/register.html', 'placeholder="Acme or Aκμή"'), - ('static/templates/settings/realm-domains-modal.handlebars', - '