Skip to content

Commit

Permalink
Clean up control chars from issue titles as well
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS committed Sep 29, 2023
1 parent 292bcb3 commit 7055bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tap_github/repository_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ def post_process(self, row: dict, context: Optional[Dict] = None) -> dict:
# such chars are removed from the data before we pass it on to
# the target
row["body"] = row["body"].replace("\x00", "")
if row["title"] is not None:
row["title"] = row["title"].replace("\x00", "")

# replace +1/-1 emojis to avoid downstream column name errors.
if "reactions" in row:
Expand Down

0 comments on commit 7055bec

Please sign in to comment.