Skip to content

Commit 0b4c7a6

Browse files
committed
Make linters errorRegex work on windows
1 parent ae600b5 commit 0b4c7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/linter-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class FortranLintingProvider {
1616

1717
private diagnosticCollection: vscode.DiagnosticCollection;
1818
private doModernFortranLint(textDocument: vscode.TextDocument) {
19-
const errorRegex: RegExp = /^([^:]*):([0-9]+):([0-9]+):\n\s(.*)\n.*\n(Error|Warning|Fatal Error):\s(.*)$/gm;
19+
const errorRegex: RegExp = /^.{2}([^:]*):([0-9]+):([0-9]+):\r?\n\s*(.*)\r?\n.*\r?\n(Error|Warning|Fatal Error):\s(.*)$/gm;;
2020

2121
if (textDocument.languageId !== LANGUAGE_ID) {
2222
return;

0 commit comments

Comments
 (0)