Преглед на файлове

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) => {