Skip to content

Commit

Permalink
Improve token change marker
Browse files Browse the repository at this point in the history
  • Loading branch information
TilmanGriesel committed Nov 19, 2024
1 parent 69eac83 commit 20d7611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/theme-patcher/graphite-theme-patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _process_yaml_file(self, file_path: Path, value: Optional[str]) -> bool:

# Prepare update
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
new_value = f"{self.token}: {value} # Modified via Graphite Theme patcher v{__version__} - {timestamp}"
new_value = f"{self.token}: {value} # Modified via Graphite Theme Patcher v{__version__} - {timestamp}"
pattern = f"{self.token}:.*(?:\r\n|\r|\n|$)"
updated_content = re.sub(pattern, new_value + "\n", content)

Expand Down

0 comments on commit 20d7611

Please sign in to comment.