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:
parent
957fa52c54
commit
4a596d232e
1 changed files with 1 additions and 1 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue