From d55ab85633ef48fc504d2f099f0289e35545b400 Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Thu, 9 Feb 2017 09:40:13 +0100 Subject: [PATCH] processing: fix escaping --- python/plugins/processing/gui/OutputSelectionPanel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/plugins/processing/gui/OutputSelectionPanel.py b/python/plugins/processing/gui/OutputSelectionPanel.py index eb3c91a8d3a..1ca1a623c53 100644 --- a/python/plugins/processing/gui/OutputSelectionPanel.py +++ b/python/plugins/processing/gui/OutputSelectionPanel.py @@ -175,8 +175,8 @@ class OutputSelectionPanel(BASE, WIDGET): fileName = str(files[0]) selectedFileFilter = str(fileDialog.selectedNameFilter()) if not fileName.lower().endswith( - tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))): - ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter) + tuple(re.findall("\\*(\\.[a-z]{1,10})", fileFilter))): + ext = re.search("\\*(\\.[a-z]{1,10})", selectedFileFilter) if ext: fileName += ext.group(1) settings.setValue('/Processing/LastOutputPath', @@ -212,8 +212,8 @@ class OutputSelectionPanel(BASE, WIDGET): fileName = str(files[0]) selectedFileFilter = str(fileDialog.selectedNameFilter()) if not fileName.lower().endswith( - tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))): - ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter) + tuple(re.findall("\\*(\\.[a-z]{1,10})", fileFilter))): + ext = re.search("\\*(\\.[a-z]{1,10})", selectedFileFilter) if ext: fileName += ext.group(1) self.leText.setText(fileName)