Skip to content

Commit

Permalink
fixed the boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
chiouc committed Apr 16, 2024
1 parent e028902 commit 8a5ae03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/findCapitalizedPrimitiveTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs';

// const disposable = vscode.commands.registerCommand('extension.findCapitalizedPrimitiveTypes', findCapitalizedPrimitiveTypes);

const outputFile = '/Users/willscomputer/Documents/ptesting/gradeFast-1.0/src/OutputTesting/error_lines.txt';
const outputFile = '/Users/sealion/gradeFast-1.0/src/error_lines.txt';

export function findCapitalizedPrimitiveTypes() {
// activeTextEditor allows access to text inside opened document.
Expand All @@ -24,7 +24,7 @@ export function findCapitalizedPrimitiveTypes() {
// 8. The `/` marks the end of the pattern.
// 9. `g` means the pattern should be applied globally to find all matches in the input text.

const pattern = /\b(?:int|double|Boolean|char|byte|long|String)\s+([A-Z])(\w*)\b/g;
const pattern = /\b(?:int|double|boolean|Boolean|char|byte|long|String)\s+([A-Z])(\w*)\b/g;

const errorLines: string[] = [];
// Array to store line numbers with errors
Expand Down

0 comments on commit 8a5ae03

Please sign in to comment.