Skip to content

Commit 3a45605

Browse files
authored
Fix slang warning message with square brackets (#427)
1 parent 48ce4c5 commit 3a45605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linter/SlangLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default class SlangLinter extends BaseLinter {
9393
{ cwd: cwd },
9494
(_error: Error, _stdout: string, stderr: string) => {
9595
let diagnostics: vscode.Diagnostic[] = [];
96-
const re = /(.+?):(\d+):(\d+):\s(note|warning|error):\s([^[\]]*)(\[-W(.*)\])?/;
96+
const re = /(.+?):(\d+):(\d+):\s(note|warning|error):\s(.*?)(\[-W(.*)\]|$)/;
9797
stderr.split(/\r?\n/g).forEach((line, _) => {
9898
if (line.search(re) === -1) {
9999
return;

0 commit comments

Comments
 (0)