Closed poldridge closed 3 years ago
The s flag allows . to match newlines so that if the value only contains a multiline EJS expression it will still be rendered by EJS. It allows this to work:
s
.
status: >- <%= [ 'pending_approval', 'approved', 'rejected', ][ ~~(Math.random()*3) ] %>
thanks
The
s
flag allows.
to match newlines so that if the value only contains a multiline EJS expression it will still be rendered by EJS. It allows this to work: