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

Commit

Permalink
Koenig - Change ~strike~ text expansion to ~~strike~~
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield committed Apr 12, 2018
1 parent d9c5697 commit 1a58551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/koenig-editor/addon/options/text-expansions.js
Expand Up @@ -196,7 +196,7 @@ export default function (editor) {

function matchStrikethrough(editor, text) {
let {range} = editor;
let matches = text.match(/(?:^|\s)~([^\s~]+|[^\s~][^~]*[^\s])~/);
let matches = text.match(/(?:^|\s)~~([^\s~]+|[^\s~][^~]*[^\s])~~/);
if (matches) {
let match = matches[0].trim();
range = range.extend(-(match.length));
Expand Down

0 comments on commit 1a58551

Please sign in to comment.