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
If you're using a regular expression (RegExp) literal notation, you'll need to wrap it in parentheses.
This is followed by a markup sample:
<div>{/^[A-Za-z ]+$/.test(value) ?x:y}</div>
Note that in the sample, the RegExp literal is not wrapped in parentheses. Therefore this section of the doc becomes confusing to users: do you need to wrap RegExp literals in parentheses or not?