Skip to content

Commit a6be592

Browse files
committed
Use a lower space threshold to hide command palette
1 parent f4d955a commit a6be592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/DraftUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export default {
525525

526526
const afterSlashText = blockText.slice(slashPos);
527527

528-
const hasPrompt = (afterSlashText.match(/\s/g) || []).length < 2;
528+
const hasPrompt = (afterSlashText.match(/\s/g) || []).length < 1;
529529

530530
if (hasPrompt) {
531531
return { text: afterSlashText, block, position: slashPos };

0 commit comments

Comments
 (0)