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
we want it to still work, so we have to manually remove (1) any non math characters like (, separators) and any trailing math characters at the end like ., +, = etc.
Currently we wrote a regex that cleans up the user input before piping it through the string-math like so:
we use this with text field user input.
if the user ends its string in any of these ways:
100 + 100 +100.1 + 100.100 + 100 =1,000 + 1,000we want it to still work, so we have to manually remove (1) any non math characters like (
,separators) and any trailing math characters at the end like.,+,=etc.Currently we wrote a regex that cleans up the user input before piping it through the
string-mathlike so:is there any advice you can give if this is a good way to do it?