Skip to content

Commit

Permalink
Edit regex pattern for Safari browser, fixes Ionaru#478
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionaru committed Aug 20, 2022
1 parent b4c55d9 commit f8a66b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ function _toggleLink(editor, type, startEnd, url) {
var end = text.slice(startPoint.ch);

if (type == 'link') {
start = start.replace(/(.*(?<!!))\[/, '$1');
start = start.replace(/(.*)[^!]\[/, '$1');
} else if (type == 'image') {
start = start.replace(/(.*)!\[$/, '$1');
}
Expand Down

0 comments on commit f8a66b1

Please sign in to comment.