Skip to content

Commit 1c7be1b

Browse files
authored
MQE-293 Bug-Fix
Incorrect Copy-Paste while rearranging some code, fixed in local 293, tested, and merged to sprint-develop.
1 parent a11f49d commit 1c7be1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Magento/AcceptanceTestFramework/Test/Objects/ActionObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ private function stripAndReturnParameters($reference)
293293
private function findAndReplaceReferences($objectHandler, $inputString)
294294
{
295295
//Determine if there are Parethesis and parameters. If not, use strict regex. If so, use nested regex.
296-
preg_match_all(ActionObject::ACTION_ATTRIBUTE_VARIABLE_REGEX_PATTERN, $inputString, $variableMatches);
297-
if (!empty($variableMatches[0])) {
296+
preg_match_all(ActionObject::ACTION_ATTRIBUTE_VARIABLE_REGEX_PARAMETER, $inputString, $variableMatches);
297+
if (empty($variableMatches[0])) {
298298
$regex = ActionObject::ACTION_ATTRIBUTE_VARIABLE_REGEX_PATTERN;
299299
} else {
300300
$regex = ActionObject::ACTION_ATTRIBUTE_VARIABLE_REGEX_NESTED;

0 commit comments

Comments
 (0)