Skip to content

Commit

Permalink
Merge pull request #431 from rest-for-physics/jgalan_expression_fix
Browse files Browse the repository at this point in the history
REST_StringHelper::isAExpression. Fixing a bug
  • Loading branch information
jgalan authored Jun 1, 2023
2 parents 5a1e0f6 + 6e8a408 commit a22d84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/framework/tools/src/TRestStringHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Int_t REST_StringHelper::isAExpression(const string& in) {
}

if (!symbol) {
size_t pos = in.find_first_of("+-*/e^%");
if (pos > 0 && pos < in.size() - 1) {
size_t pos = in.substr(1, in.length() - 2).find_first_of("+-*/e^%");
if (pos != string::npos) {
symbol = true;
}
}
Expand Down

0 comments on commit a22d84f

Please sign in to comment.