Caused by rB45dbc38a8b15.
Above commit would place parentheses surrounding a block until the next
operator was found.
For velocities and accelerations though, the '/' in 'm/s' or 'ft/s'
should not be considered an operator.
Differential D9467
Fix T82407: Negative number input gives syntax error for velocities and accelerations Authored by Philipp Oeser (lichtwerk) on Nov 5 2020, 11:33 AM. Tags Subscribers None
Details Caused by rB45dbc38a8b15. Above commit would place parentheses surrounding a block until the next
Diff Detail
Event TimelineComment Actions The patch itself makes sense, but I wonder if it would make more sense to check for any letter a through z instead. If not, we should use the ELEM macro here, that makes this check look much better. I also noticed that scientific_notation variable isn't doing anything, so I can clean that up later. Comment Actions why not be precise? what other cases do you have in mind?
done
please do Comment Actions Mostly because the characters we check for here depend on the strings in each bUnitDef, so we're introducing a dependency that won't be obviously visible in the future. But it's just a trade-off I suppose, because this is more explicit, and I'm fine with this. |