fix: added parenthesis to literal notation example

pull/9027/head
Kai Erik Niermann 3 years ago
parent 7af165de09
commit b013f69862

@ -117,7 +117,7 @@ Text can also contain JavaScript expressions:
<h1>Hello {name}!</h1>
<p>{a} + {b} = {a + b}.</p>
<div>{/^[A-Za-z ]+$/.test(value) ? x : y}</div>
<div>{(/^[A-Za-z ]+$/).test(value) ? x : y}</div>
```
## Comments

Loading…
Cancel
Save