From afde460fe681ae83286ec604ed6375f39da0cb0a Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Thu, 11 Jan 2024 23:26:48 +0900 Subject: [PATCH] Fix regexp --- packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts b/packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts index 8a6e16f190b8..3d545655f673 100644 --- a/packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts +++ b/packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts @@ -28,7 +28,7 @@ const commentPatterns = { wasm: {start: '\\;\\;', end: ''}, tex: {start: '%', end: ''}, vb: {start: "['‘’]", end: ''}, - vbnet: {start: "_\s*['‘’]", end: ''}, // Visual Studio 2019 or later + vbnet: {start: "(?:_\\s*)?['‘’]", end: ''}, // Visual Studio 2019 or later rem: {start: '[Rr][Ee][Mm]\\b', end: ''}, f90: {start: '!', end: ''}, // Free format only ml: {start: '\\(\\*', end: '\\*\\)'},