From 7d6d0c11db12a1d298c0a2486c599210f959f288 Mon Sep 17 00:00:00 2001 From: yulixing Date: Mon, 4 Nov 2019 15:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E7=9B=98=E8=A7=A3=E6=9E=90=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/open/zp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/open/zp.js b/src/controllers/open/zp.js index 1bf0535..9aa7f53 100644 --- a/src/controllers/open/zp.js +++ b/src/controllers/open/zp.js @@ -68,7 +68,7 @@ router.get('/text', async (req, res, next) => { function parseText(text) { const result = [] const textArr = text.split('\n') - const textReg = /^(#+) (.*)::(.*)$/ + const textReg = /^(#+) (\|1\|)*(.*)::(.*)$/ let lastLevel = 0 let lastIdx = 0 const posArr = [result]