roosterjs 8.26.0 → 8.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rooster.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for roosterjs (Version 8.26.0)
1
+ // Type definitions for roosterjs (Version 8.26.1)
2
2
  // Generated by dts tool from roosterjs
3
3
  // Project: https://github.com/Microsoft/roosterjs
4
4
 
package/dist/rooster.js CHANGED
@@ -19404,8 +19404,9 @@ function cacheGetListElement(event, editor) {
19404
19404
  }
19405
19405
  function shouldTriggerList(event, editor, getListStyle) {
19406
19406
  var searcher = editor.getContentSearcherOfCursor(event);
19407
- var textBeforeCursor = searcher.getSubStringBefore(5);
19408
- return !searcher.getNearestNonTextInlineElement() && getListStyle(textBeforeCursor);
19407
+ var textBeforeCursor = searcher.getSubStringBefore(4);
19408
+ var itHasSpace = /\s/g.test(textBeforeCursor);
19409
+ return (!itHasSpace && !searcher.getNearestNonTextInlineElement() && getListStyle(textBeforeCursor));
19409
19410
  }
19410
19411
  /**
19411
19412
  * @internal