src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py

branch
eric7
changeset 9433
6df1aeaa4529
parent 9413
80c06d472826
child 9473
3f23dbf37dbe
--- a/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py	Tue Oct 25 17:25:51 2022 +0200
+++ b/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py	Wed Oct 26 11:50:03 2022 +0200
@@ -793,7 +793,7 @@
             )
         if self.captureCheckBox.isChecked():
             options.append("QRegularExpression.PatternOption.DontCaptureOption")
-        options = " |{0}{1}".format(os.linesep, i1string).join(options)
+        options = "{0}{1}| ".format(os.linesep, i1string).join(options)
 
         code = "{0} = QRegularExpression(".format(reVar)
         if options:
@@ -803,7 +803,7 @@
             code += "{0}{1}{2}".format(os.linesep, i1string, options)
         else:
             code += 'r"""{0}"""'.format(regexp.replace('"', '\\"'))
-        code += "{0}){0}".format(estring)
+        code += ",{0}){0}".format(estring)
         return code
 
 

eric ide

mercurial