Koenig - Fixed dash text expansions

refs https://github.com/TryGhost/Ghost/issues/9623
- 3978894856 broke dash expansions because the list toggle was matching the `- ` before the dash text expansion could be triggered
- resolved by adding the missing beginning-of-string `^`
This commit is contained in:
Kevin Ansfield 2018-06-15 15:43:00 +01:00
parent a9c8db27f8
commit 03e21f3f04
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export default function (editor, koenig) {
editor.unregisterTextInputHandler('ul');
editor.onTextInput({
name: 'md_ul',
match: /^\* |- /,
match: /^\* |^- /,
run(editor, matches) {
replaceWithListSection(editor, matches, 'ul');
}