Skip to content

Commit f5c0dcd

Browse files
authored
Make :article case-sensitive on all platforms
Right now it was case sensitive on sane platforms and case insensitive on windows. Make it work the same regardless
1 parent 031b250 commit f5c0dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messages/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _article(self, value, arg):
241241
from src.messages import messages
242242

243243
for rule in messages.raw("_metadata", "articles"):
244-
if rule["pattern"] is None or fnmatch.fnmatch(value, rule["pattern"]):
244+
if rule["pattern"] is None or fnmatch.fnmatchcase(value, rule["pattern"]):
245245
return rule["article"]
246246

247247
raise ValueError("No article rules matched the value {0!r} in language metadata!".format(value))

0 commit comments

Comments
 (0)