From ee82298bf31d3ed6e3d5d6ce7a54e656b1c152c7 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Thu, 23 Jan 2025 17:49:08 +0100 Subject: [PATCH] fix limiter regex also for ui --- src/gui_qt/io/asciireader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_qt/io/asciireader.py b/src/gui_qt/io/asciireader.py index 5fb765b..924bcec 100644 --- a/src/gui_qt/io/asciireader.py +++ b/src/gui_qt/io/asciireader.py @@ -133,7 +133,7 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader): if self.column_checkBox.isChecked() and self.line_spinBox.isEnabled(): header_line = self.reader.header[self.line_spinBox.value()-1] header_line = header_line.strip('\n\t\r, ') - header_line = re.sub(r'[\t ;,]+', ';', header_line) + header_line = re.sub(r'[\t, ;]+(?!\w*})', ';', header_line) self.ascii_table.setHorizontalHeaderLabels(header_line.split(';'))