Skip to content

Commit

Permalink
Add Suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
tinomerl and coderabbitai[bot] authored Dec 2, 2024
1 parent e19b95e commit bff1359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte/_writers/file_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _get_new_cache_file_path(
# If a stream contains a special Character, the temporary jsonl.gz
# file can't be created, because of OS restrictions. Therefore, we
# remove the special characters.
cleaned_stream_name = re.sub(r"[^a-zA-Z0-9\s]", "", stream_name)
cleaned_stream_name = re.sub(r'[<>:"/\\|?*\x00-\x1F]', "", stream_name)
return target_dir / f"{cleaned_stream_name}_{batch_id}{self.default_cache_file_suffix}"

def _open_new_file(
Expand Down

0 comments on commit bff1359

Please sign in to comment.