Skip to content

Commit

Permalink
fix: update inline tool regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Jan 19, 2025
1 parent 89a443e commit 13413e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/ToolCompletionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ToolCompletionProvider implements vscode.CompletionItemProvider {
}

const toolMatch = linePrefix.match(
/([a-z/'"-0-9:]*)\s*=\s*(["']?)([^"']*)$/,
/([a-zA-Z/'"\-0-9:]*)\s*=\s*(["']?)([^"']*)$/,
);
if (!toolMatch) {
return [];
Expand Down
2 changes: 1 addition & 1 deletion src/providers/inlineToolDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function showToolVersionInline(
continue;
}

const toolMatch = trimmedLine.match(/^([a-z/'"-0-9:]*)\s*=\s.*/);
const toolMatch = trimmedLine.match(/^([a-zA-z/'"\-0-9:]*)\s*=\s.*/);
if (!toolMatch || !toolMatch[1]) {
continue;
}
Expand Down

0 comments on commit 13413e9

Please sign in to comment.