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', - ''), ("static/templates/user-groups-admin.handlebars", '')], 'exclude': set(["static/templates/settings/emoji-settings-admin.handlebars", "static/templates/settings/realm-filter-settings-admin.handlebars", - "static/templates/settings/bot-settings.handlebars", - "templates/zerver/email_log.html"]), + "static/templates/settings/bot-settings.handlebars"]), 'good_lines': [''], 'bad_lines': ['']}, {'pattern': "placeholder='[^{]",