1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Desktop: Enforce that whitespace check for unindent checks the begining of a (#3515)

This commit is contained in:
Caleb John 2020-07-22 16:17:49 -06:00 committed by GitHub
parent 1d79dedf6d
commit 0fa8dfa063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export default function useListIdent(CodeMirror: any) {
let start = listTokens[0].start;
const token = extractListToken(line);
if (listTokens.length > 1 && listTokens[0].string.match(/\s/)) {
if (listTokens.length > 1 && listTokens[0].string.match(/^\s/)) {
start = listTokens[1].start;
}