Ghost/ghost/core/test/e2e-api
Simon Backx 3db434736b
🐛 Fixed replacements with fallback in plaintext newsletters (#16372)
fixes https://github.com/TryGhost/Team/issues/2683

When sending a newsletter with a replacement that has a fallback, the
replacement only happens in the HTML version of the newsletter. The
plaintext version isn't replaced.

This commit fixes the issue and adds some tests to make sure it doesn't
happen again.

The cause of the issue was that we used the original matched Regex text
to replace. But that was calculated on the HTML version, so double
quotes were encoded. This change updates the generated 'token' regex to
also match on both a double quote as the escaped double quote.
2023-03-07 15:34:43 +01:00
..
admin 🐛 Fixed replacements with fallback in plaintext newsletters (#16372) 2023-03-07 15:34:43 +01:00
content Fixed variable name typo 2023-02-17 17:27:51 +08:00
members Fixed typos (#16359) 2023-03-06 13:11:45 +01:00
members-comments Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
shared Fixed test name as content version header is always present 2023-01-26 19:20:15 +08:00
webmentions Added webmentions emails flag (#16321) 2023-02-23 11:42:14 +01:00