Преглед изворни кода

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