Skip to content

Commit

Permalink
fix: sanitize message by stripping leading and trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
liblaf committed Apr 26, 2024
1 parent 7226896 commit 885e95d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aic/commit_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


def sanitize(msg: str) -> str:
msg = msg.strip()
msg = msg.removeprefix("<Answer>").removesuffix("</Answer>")
msg = msg.strip()
lines: Sequence[str] = [sanitize_line(line) for line in msg.splitlines()]
Expand Down

0 comments on commit 885e95d

Please sign in to comment.