Skip to content

Commit

Permalink
fix: isa table parser fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyurekten committed Nov 20, 2024
1 parent 4a1c0b8 commit af9906c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metabolights_utils/isatab/default/parser/isa_table_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def fix_isa_table_file(
)
file_content = re.sub(r"[\r\n][\r\n]+", r"\n", file_content)
if fix_new_lines_in_cells:
new_line_in_cells_pattern = r'\t"([^\t]*)([\r\n]+)([^\t]*)"\t'
new_line_in_cells_pattern = (
r'(^|\t)"([^"\t]*)([\r\n]+)([^"\t]*)"(\t|\n\|\r|$)'
)
find_new_lines_in_cells = re.findall(
new_line_in_cells_pattern, file_content
)
Expand Down

0 comments on commit af9906c

Please sign in to comment.