From 3edd15cc28323c7f30224b232ba74918f32f74d9 Mon Sep 17 00:00:00 2001 From: James Yu Date: Sun, 8 Jan 2023 11:54:55 +0800 Subject: [PATCH] Fix a CodeQL complaint --- src/providers/preview/mathpreviewlib/newcommandfinder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/preview/mathpreviewlib/newcommandfinder.ts b/src/providers/preview/mathpreviewlib/newcommandfinder.ts index d5dad6e47..37ff62c2f 100644 --- a/src/providers/preview/mathpreviewlib/newcommandfinder.ts +++ b/src/providers/preview/mathpreviewlib/newcommandfinder.ts @@ -107,7 +107,7 @@ export class NewCommandFinder { if (result) { let command = result[1] if (result[2]) { - command = command.replace(/\*/, '') + command = command.replace('*', '') } commands.push(command) }