Skip to content

Commit

Permalink
Updates conversion to properly process line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
eemperor committed Aug 16, 2024
1 parent 87686bc commit 0c2fe29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ash-windows/tools/convert-lgpo-policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def _convert_secedit(src):
policy["key"] = line.split("=")[0].strip()
policy["vtype"] = REG_CODE_MAP[line.split("=")[1].split(",")[0].strip()]
policy["value"] = (
"".join(line.split("=")[1].split(",")[1:])
.strip()
.strip('"')
.replace('""', "")
",".join([segment.replace(",", "\n") for segment in ",".join(line.split("=")[1]
.split(",")[1:])
.split('","')])
.strip().strip('"')
)
if not policy["vtype"].upper() in REG_TYPES:
print(
Expand Down

0 comments on commit 0c2fe29

Please sign in to comment.