Subject: | extract_variable doesn't recognize ${xxx} at end of string |
Tested on Versions 2.0.0 and 2.02.
I'm pretty sure this is a bug and not a feature. extract_variable
doesn't recognize things of the form "${xxx}" if they're at the end of a
string:
At end:
$ extract_variable( '${a}' )
$ARRAY1 = [
undef,
'${a}',
undef
];
Nope, Doesn't recognize it.
Not at end:
$ extract_variable( '${a}x' )
$ARRAY1 = [
'${a}',
'x',
''
];
Yup, recognizes it.
I expect both calls to return '${a}' as the first element in the
returned array.
Thanks,
Diab