소스 검색

f*ck the regexps

Ivan Asmer 4 년 전
부모
커밋
0c1afcc98a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      index.mjs

+ 2 - 2
index.mjs

@@ -385,7 +385,7 @@ const syntax = {
         paired: true, 
         recursive: false,
         startRegexp: /\n```\s*\n/,
-        endRegexp: /\n```\s*\n/,
+        endRegexp: /\n```[ \t]*\n/,
         content:{
             start:{
                 point: 'end',
@@ -399,7 +399,7 @@ const syntax = {
         begin: 1,
         forward:  {
             point: 'endEnd',
-            offset: 0
+            offset: -1
         },
     },
     codeLanguage: {