# HG changeset patch # User Andrey Skvortsov # Date 1496932181 -10800 # Node ID 72286367d0fdea7ba6af16f493f1d87d05fab0e2 # Parent 9cb4d1392bafc0a9b061f09634e88249c173ac22 fix problem with initial values for array of structures for structures wrong empty repetition attributes were generated diff -r 9cb4d1392baf -r 72286367d0fd plcopen/plcopen.py --- a/plcopen/plcopen.py Tue Jun 06 14:21:53 2017 +0300 +++ b/plcopen/plcopen.py Thu Jun 08 17:29:41 2017 +0300 @@ -2416,7 +2416,7 @@ cls = PLCOpenParser.GetElementClass("arrayValue", "value") if cls: - arrayValue_model = re.compile("([0-9]*)\((.*)\)$") + arrayValue_model = re.compile("([0-9]+)\((.*)\)$") def setvalue(self, value): elements = []