Skip to content

Commit 12c098a

Browse files
committed
MQE-1150: Test generation fails for arguments containing hyphen character
- Made regex more flexible, should accept any character except for ones that break the pattern.
1 parent 66b6ecd commit 12c098a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Test/Objects/ActionGroupObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private function resolveAttributesWithArguments($arguments, $attributes)
204204
// $regexPattern match on: $matches[0] {{section.element(arg.field)}}
205205
// $matches[1] = section.element
206206
// $matches[2] = arg.field
207-
$regexPattern = '/{{([\w.\[\]]+)\(*([\w.$\',\s\[\]]+)*\)*}}/';
207+
$regexPattern = '/{{([^(}]+)\(*([^)}]+)*\)*}}/';
208208

209209
$newActionAttributes = [];
210210
foreach ($attributes as $attributeKey => $attributeValue) {

0 commit comments

Comments
 (0)