mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
3db434736b
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. |
||
---|---|---|
.. | ||
utils | ||
.eslintrc.js | ||
batch-sending-service.test.js | ||
email-controller.test.js | ||
email-event-processor.test.js | ||
email-event-storage.test.js | ||
email-renderer.test.js | ||
email-segmenter.test.js | ||
email-service.test.js | ||
mailgun-email-provider.test.js | ||
sending-service.test.js |