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?
Describe the bug
On https://svelte.dev/docs/basic-markup#text-expressions (source markdown), there is an aside that reads:
This is followed by a markup sample:
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 wrapRegExp
literals in parentheses or not?Reproduction
Navigate to https://svelte.dev/docs/basic-markup#text-expressions
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: