From 15c158761fcc4f8ec9624dead9ab6793cdb76c3f Mon Sep 17 00:00:00 2001 From: yuningjiang123 <45219486+yuningjiang123@users.noreply.github.com> Date: Wed, 30 Sep 2020 20:10:34 -0500 Subject: [PATCH] fix(vant-markdown-vetur): fix Windows system build vetur problem (#7277) (#7287) Co-authored-by: wb.jiangyuning --- packages/vant-markdown-vetur/src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-markdown-vetur/src/parser.ts b/packages/vant-markdown-vetur/src/parser.ts index 9ddf1f0cc..faaf90722 100644 --- a/packages/vant-markdown-vetur/src/parser.ts +++ b/packages/vant-markdown-vetur/src/parser.ts @@ -1,6 +1,6 @@ /* eslint-disable no-cond-assign */ const TITLE_REG = /^(#+)\s+([^\n]*)/; -const TABLE_REG = /^\|.+\n\|\s*-+/; +const TABLE_REG = /^\|.+\r?\n\|\s*-+/; const TD_REG = /\s*`[^`]+`\s*|([^|`]+)/g; const TABLE_SPLIT_LINE_REG = /^\|\s*-/;