Skip to content

Commit

Permalink
fix: clean up control chars from issue titles as well (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS authored Oct 2, 2023
1 parent 292bcb3 commit a81f6cd
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 a81f6cd

Please sign in to comment.