You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In string_util.cpp, the function ds::extractPairs is not able to handle the following expression: #expr{ #expr{ 300 * 0.7 } * 0.7 } with leftDelim = #expr{ and rightDelim = }.
The above expression can occur in the following case:
$_title_font_size = 300
$_header_font_size = #expr{ $_title_font_size * 0.7 }
$_body_font_size = #expr{ $header_font_size * 0.7 } # <-- there it is
It incorrectly stops at the first right bracket } and returns #expr{ 300 * 0.7 as a subvalue. Nested expressions should be detected and in this case #expr{ 300 * 0.7 } * 0.7 should be returned.
When fixing this issue, be careful not to break support for the following unnested example: #expr{ 200 + 50 }, #expr{ 300 + 100 }
The text was updated successfully, but these errors were encountered:
In
string_util.cpp
, the functionds::extractPairs
is not able to handle the following expression:#expr{ #expr{ 300 * 0.7 } * 0.7 }
with leftDelim =#expr{
and rightDelim =}
.The above expression can occur in the following case:
It incorrectly stops at the first right bracket
}
and returns#expr{ 300 * 0.7
as a subvalue. Nested expressions should be detected and in this case#expr{ 300 * 0.7 } * 0.7
should be returned.When fixing this issue, be careful not to break support for the following unnested example:
#expr{ 200 + 50 }, #expr{ 300 + 100 }
The text was updated successfully, but these errors were encountered: