lint: Allow empty string in alt arg.

This commit is contained in:
Umair Khan
2017-06-02 10:01:02 +05:00
committed by Tim Abbott
parent a4b76e78ac
commit bf2bc8d44b

View File

@@ -505,8 +505,8 @@ def build_custom_checkers(by_lang):
]),
'exclude': set(["templates/zerver/emails"]),
'description': "`title` value should be translatable."},
{'pattern': '\Walt=["\'][^{]',
'description': "alt argument should be enclosed by _().",
{'pattern': '\Walt=["\'][^{"\']',
'description': "alt argument should be enclosed by _() or it should be an empty string.",
'exclude': set(['tools/lint',
'static/templates/settings/display-settings.handlebars',
'templates/zerver/keyboard_shortcuts.html',