Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Koenig - Fixed dash text expansions
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#9623
- 3978894 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 `^`
  • Loading branch information
kevinansfield committed Jun 15, 2018
1 parent a9c8db2 commit 03e21f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/koenig-editor/addon/options/text-expansions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 03e21f3

Please sign in to comment.