0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed formatting only being applied to first replacement string in email card

no issue
This commit is contained in:
Kevin Ansfield 2020-04-20 12:15:11 +01:00
parent 957fa52c54
commit 4a596d232e

View file

@ -16,7 +16,7 @@ import {registerTextReplacementTextExpansions} from '../options/text-expansions'
import {run} from '@ember/runloop';
export function formatTextReplacementHtml(html) {
return (html || '').replace(/\{(.*?)\}/, '<code>$&</code>');
return (html || '').replace(/\{(.*?)\}/g, '<code>$&</code>');
}
// TODO: extract core to share functionality between this and `{{koenig-editor}}`