From 9e3c5876ee3239ca8058cfa267675b979f117a1f Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 15 Jun 2018 15:43:00 +0100 Subject: [PATCH] Koenig - Fixed dash text expansions refs https://github.com/TryGhost/Ghost/issues/9623 - https://github.com/TryGhost/Ghost-Admin/commit/ea2a6a09dcba1fe9edf6139d0d1cb88035f3b7ae 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 `^` --- ghost/admin/lib/koenig-editor/addon/options/text-expansions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/lib/koenig-editor/addon/options/text-expansions.js b/ghost/admin/lib/koenig-editor/addon/options/text-expansions.js index e457a5803c..f00c265ef1 100644 --- a/ghost/admin/lib/koenig-editor/addon/options/text-expansions.js +++ b/ghost/admin/lib/koenig-editor/addon/options/text-expansions.js @@ -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'); }