Skip to content

Commit bb42345

Browse files
committed
trim the text for null text check.
1 parent 4027212 commit bb42345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/newsletter.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@
996996
</tr>
997997
998998
<!-- I saw `null` as a text for `post.featuredImageCaption`, weird. -->
999-
<% if (post.featuredImageCaption && post.featuredImageCaption !== 'null') { %>
999+
<% if (post.featuredImageCaption && post.featuredImageCaption.replace(/\s+/g, '') !== 'null') { %>
10001000
<tr>
10011001
<td align="center"
10021002
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; vertical-align: top; width: 100%; padding-bottom: 30px; text-align: center; font-size: 13px; color: #738a94;"

0 commit comments

Comments
 (0)