Reformat headers for extra rule fields

This commit is contained in:
Mark Veidemanis 2023-02-08 16:35:23 +00:00
parent 81c8e34211
commit 1eea401657
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 0 deletions

View File

@ -12,10 +12,13 @@ def format_header(self):
header = header.lower() header = header.lower()
header = header.title() header = header.title()
if header != "Ident": if header != "Ident":
header = header.replace("Uuid", "UUID")
header = header.replace("Id", "ID") header = header.replace("Id", "ID")
header = header.replace("id", "ID") header = header.replace("id", "ID")
if header == "Ts": if header == "Ts":
header = "TS" header = "TS"
if header == "Match Ts":
header = "Match TS"
header = header.replace("Nsfw", "NSFW") header = header.replace("Nsfw", "NSFW")
return header return header