Explorar el Código

add link of regex101 to regular expression

kosei-n hace 2 años
padre
commit
e8991ceb69
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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) => {