Skip to content

fix: sanitize worklog comments and use proper JSON marshaling - #42

Merged
kimpepper merged 1 commit into
mainfrom
fix/sanitize-worklog-comments
Jun 9, 2026
Merged

fix: sanitize worklog comments and use proper JSON marshaling#42
kimpepper merged 1 commit into
mainfrom
fix/sanitize-worklog-comments

Conversation

@kimpepper

@kimpepper kimpepper commented Jun 9, 2026

Copy link
Copy Markdown
Member

Fixes JSON parsing errors when worklog comments contain newlines, tabs, or other special characters.

  • Refactor generateWorklogPayload() to use encoding/json instead of text templates
  • Add SanitizeComment() utility to normalize whitespace (newlines/tabs → spaces)
  • JSON marshaling handles proper escaping of quotes and backslashes
  • Add AGENTS.md with project documentation

@kimpepper
kimpepper merged commit dd92410 into main Jun 9, 2026
1 check passed
@kimpepper
kimpepper deleted the fix/sanitize-worklog-comments branch June 9, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant