Mark regex

This commit is contained in:
Nyall Dawson 2018-06-22 12:53:22 +10:00
parent 398e2a17dd
commit 6e7c07bc86

View File

@ -86,7 +86,7 @@ class PredefinedExpressionDialog(BASE_DLG, WIDGET_DLG):
self.filledExpression = None
self.options = options
self.expression = expression
self.variables = set(re.findall('\[.*?\]', expression))
self.variables = set(re.findall(r'\[.*?\]', expression))
self.comboBoxes = {}
for variable in self.variables:
label = QLabel(variable[1:-1])