From 608141eb863911db081e1c7008c1fd34beff77da Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sun, 24 Nov 2024 16:18:01 +0800 Subject: [PATCH] fix: revert regionRE --- src/node/utils/processIncludes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/utils/processIncludes.ts b/src/node/utils/processIncludes.ts index c30ada68..687af672 100644 --- a/src/node/utils/processIncludes.ts +++ b/src/node/utils/processIncludes.ts @@ -68,7 +68,8 @@ export function processIncludes( const start = lines.findIndex((line) => line === titleName) const prefixLength = titleName.replace(/[^#]/g, '').length const end = lines.findIndex( - (line, index) => line.replace(/[^#]/g, '').length === prefixLength && index > start + (line, index) => + line.replace(/[^#]/g, '').length === prefixLength && index > start ) if (end === -1) { content = lines.slice(start).join('\n')