소스 검색

add link of regix.com as comment

kosei-n 2 년 전
부모
커밋
d581046744
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/editor/src/services/list-util/markdown-list-util.ts

+ 1 - 0
packages/editor/src/services/list-util/markdown-list-util.ts

@@ -11,6 +11,7 @@ const getStrFromBol = (editor: EditorView) => {
   return editor.state.sliceDoc(getBol(editor), curPos);
 };
 
+// https://regex101.com/r/UKMNlO/1
 const indentAndMarkRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/;
 
 const insertText = (editor: EditorView, text: string) => {