Skip to content

Commit 523bf3d

Browse files
committed
lfs-ext: make attribute char case-insensitive for letters only
1 parent b217513 commit 523bf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-find-lfs-extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ def print_line(type, ext, share_large, count_large, count_all, size_all, min, ma
138138
for ext in sorted(result, key=lambda x: (result[x]['type'], x)):
139139
if len(ext) > 0 and result[ext]['type'] == "binary" and result[ext]['count_large'] > 0:
140140
print('*.{} filter=lfs diff=lfs merge=lfs -text'.format(
141-
"".join(c if ('0' <= c <= '9') else "[" + c.upper() + c.lower() + "]" for c in ext)
141+
"".join("[" + c.upper() + c.lower() + "]" if (('a' <= c <= 'z') or ('A' <= c <= 'Z')) else c for c in ext)
142142
))

0 commit comments

Comments
 (0)