diff --git a/pyproject.toml b/pyproject.toml index 44077db..6657cac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pyqulator" -version = "1.4.1" +version = "1.4.2" dependencies = [ "PyQt6>=6.4.2", "sympy>=1.13.3", diff --git a/src/pyqulator/main.py b/src/pyqulator/main.py index ff3b926..eae1210 100644 --- a/src/pyqulator/main.py +++ b/src/pyqulator/main.py @@ -448,10 +448,10 @@ def line_result_paste(self): filtered_text = "" for char in text: if self.ui.stackedwidget.currentIndex() in {0, 1, 2}: - if char.isdigit() or char in "+-*/()": + if char.isdigit() or char in ".+-*/()": filtered_text += char else: - if char.isdigit(): + if char.isdigit() or char in ".": filtered_text += char self.current_line_result.setText(filtered_text)