소스 검색

add link of regex101 to regular expression

kosei-n 2 년 전
부모
커밋
e8991ceb69
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

@@ -1,5 +1,6 @@
 import { EditorView } from '@codemirror/view';
 
+// https://regex101.com/r/7BN2fR/5
 const indentAndMarkRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/;
 
 const getBol = (editor: EditorView) => {