Skip to content

Commit

Permalink
Remove trailing periods in messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
brett0000FF committed Mar 18, 2024
1 parent 167d796 commit 1579456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update-rules-page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from datetime import datetime

def generate_rule_markdown(rule_data):

## Use description field if it exists; if not, use message field
description = rule_data.get('description', rule_data['message'])
description = rule_data.get('description', rule_data['message'].rstrip('.'))
markdown = f"### {description}\n\n"
markdown += f"**Level:** *{rule_data['level']}*\n\n"

Expand Down

0 comments on commit 1579456

Please sign in to comment.