Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Truncate regex in benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
hSaria committed Dec 27, 2021
1 parent 50499de commit fd1b43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chromaterm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,6 @@ def print_benchmark_results(self, descending=True, file=sys.stderr):
reverse=descending):
print(
f'{duration / total:^7.2%} {duration:.3f}s {count:<7} '
f'{rule.description or repr(rule.regex)}',
f'{rule.description or repr(rule.regex[:30])}',
file=file,
)

0 comments on commit fd1b43d

Please sign in to comment.