Skip to content

Commit

Permalink
Fix "security hotspots"
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed May 28, 2024
1 parent 155a091 commit f1ec53c
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 228 deletions.
2 changes: 1 addition & 1 deletion rich_tables/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

snoop.install(color=True)

MATCH_COUNT_HEADER = re.compile(r"duration|(_sum|_?count)$")
MATCH_COUNT_HEADER = re.compile(r"duration|(_sum$|_?count$)")


# @snoop
Expand Down
2 changes: 1 addition & 1 deletion rich_tables/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
BOLD_GREEN = "b green"
BOLD_RED = "b red"
SECONDS_PER_DAY = 86400
CONSECUTIVE_SPACE = re.compile("(^ +| +$)")
CONSECUTIVE_SPACE = re.compile("((^ +)|( +$))")


# @lru_cache
Expand Down
Loading

0 comments on commit f1ec53c

Please sign in to comment.