Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Aug 30, 2024
1 parent 3d32a30 commit 2286c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function activate(context: vscode.ExtensionContext) {
} else {
useCmdName = cmdName;
}
// Upercase the first letter of the command name
// Uppercase the first letter of the command name
useCmdName = useCmdName.charAt(0).toUpperCase() + useCmdName.slice(1);

const qualifiedCmdName = 'juvix-mode.' + cmdName;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function runShellCommand(command: string, input?: string): Promise<
});
}

const regexJuvixError = /(?<file>.*):(?<line>\d+):(?<begin_col>\d+)-?(?<end_col>\d+)?:\s(?<err_type>.*):\s(?<msg>((\n|.)*))/g;
const regexJuvixError = /(?<file>.*):(?<line>\d+):(?<begin_col>\d+)-?(?<end_col>\d+)?:\s(?<err_type>.*):\s?(?<msg>((\n|.)*))/g;

export function getDiagnosticFromError(output: string): vscode.Diagnostic | undefined {
const { file, line, begin_col, end_col, err_type, msg } = regexJuvixError.exec(output)!.groups!;
Expand Down

0 comments on commit 2286c30

Please sign in to comment.