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
In line 50 on index.js, there's a regex replacement from\nto <br>
The issue is that the regex is not using the g modifier - which causing only the first \n occurrence to be replaced.
to fix that, there's a need to change _html: (title || '').replace(/<[^>]+>/g).replace(/\n/, '<br>')
to _html: (title || '').replace(/<[^>]+>/g).replace(/\n/g, '<br>')
The text was updated successfully, but these errors were encountered:
In line 50 on index.js, there's a regex replacement from
\n
to<br>
The issue is that the regex is not using the
g
modifier - which causing only the first \n occurrence to be replaced.to fix that, there's a need to change
_html: (title || '').replace(/<[^>]+>/g).replace(/\n/, '<br>')
to
_html: (title || '').replace(/<[^>]+>/g).replace(/\n/g, '<br>')
The text was updated successfully, but these errors were encountered: