Skip to content

Commit 33ff1e6

Browse files
committed
REF: Improve "File/download size" pattern to include '1K' (i.e. sans 'B')
1 parent de52acb commit 33ff1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
r'\b\d+(?:\.\d+)?s(?:ec)?\b': '1.1s',
1919
r'\b(in|since) \d+\.\d+': 'in 1.1',
2020
# File/download sizes
21-
r'(?i)\d+(?:\.\d+)?(?:/\d)? ?(?P<suffix>kb|kib|mb|mib|gb|gib)': r'1 \g<suffix>',
21+
r'(?i)\d+(?:\.\d+)?(?:/\d)? ?(?P<suffix>[kmg](?:i?b)?)\b': r'1 \g<suffix>',
2222
# TCP / HTTP
2323
r'\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b': '11.1.1.1', # IPv4
2424
r':\d{5,5}\b': ':11111', # Remote port

0 commit comments

Comments
 (0)