You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-30 23:44:55 +02:00
Desktop, Mobile: Fixes #10891: Markdown editor: Fix toggling bulleted lists when items start with asterisks (#10902)
This commit is contained in:
@ -131,8 +131,8 @@ export const toggleList = (listType: ListType): Command => {
|
||||
|
||||
// RegExps for different list types. The regular expressions MUST
|
||||
// be mutually exclusive.
|
||||
// `(?!\[[ xX]+\]\s?)` means "not followed by [x] or [ ]".
|
||||
const bulletedRegex = /^\s*([-*])(?!\s\[[ xX]+\])\s?/;
|
||||
// `(?!\[[ xX]+\])` means "not followed by [x] or [ ]".
|
||||
const bulletedRegex = /^\s*([-*])\s(?!\[[ xX]+\])/;
|
||||
const checklistRegex = /^\s*[-*]\s\[[ xX]+\]\s?/;
|
||||
const numberedRegex = /^\s*\d+\.\s?/;
|
||||
|
||||
|
Reference in New Issue
Block a user