Skip to content

Commit

Permalink
chore: remove ( and ) from entry_title_for_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeromard committed Apr 18, 2024
1 parent 902580d commit 7ec80ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add_product_updates_to_rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def process_new_entry():
for entry in entries:
entry_text = re.search("^## ([\S ]*?)\n\n([\S ]*?)\n\n(\*\*([\S ]*?)\*\*\n\n|)([\S\s]*?)\Z",entry)
entry_title_text = entry_text.group(1)
entry_title_for_url = str(entry_title_text).lower().replace(" - "," ").replace("—","").replace("’","").replace('"','').replace(":","")
entry_title_for_url = str(entry_title_text).lower().replace(" - "," ").replace("—","").replace("’","").replace('"','').replace(":","").replace("(","").replace(")","")
entry_date_text = entry_text.group(2)
item_time = datetime.datetime.now(datetime.timezone.utc).strftime("%H:%M:%S GMT")
item_date_and_time = f"{entry_date_text} {item_time}"
Expand Down

0 comments on commit 7ec80ff

Please sign in to comment.