We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe964a commit 62e82e4Copy full SHA for 62e82e4
util/ActionTest.php
@@ -419,9 +419,9 @@ private function convertResponseField(string $field): string
419
private function convertDollarValueInVariable(string $value): string
420
{
421
foreach ($this->variables as $var) {
422
- if (preg_match_all("/\\\$\{$var\}/", $value)) {
423
- $value = str_replace('${'. $var .'}', "' . \$$var . '", $value);
424
- } else {
+ $value = str_replace("\${{$var}}", "\$$var", $value);
+ $value = str_replace("'\$$var'", "\$$var", $value);
+ if (preg_match("/'[^']*\\\${$var}[^']*'/", $value)) {
425
$value = str_replace("\$$var", "' . \$$var . '", $value);
426
}
427
0 commit comments