Skip to content

Commit

Permalink
Merge pull request #439 from devoxx/issue-438
Browse files Browse the repository at this point in the history
Fix #438: Regression fix for /find command check
  • Loading branch information
stephanj authored Jan 23, 2025
2 parents 03b90c5 + 37a0f86 commit 23274fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ public Optional<String> getCommandFromPrompt(@NotNull ChatMessageContext chatMes
DevoxxGenieSettingsService settings = DevoxxGenieStateService.getInstance();
List<CustomPrompt> customPrompts = settings.getCustomPrompts();

// Must be startsWith and not equalsIgnoreCase !
Optional<CustomPrompt> matchingPrompt = customPrompts.stream()
.filter(customPrompt -> prompt.equalsIgnoreCase(COMMAND_PREFIX + customPrompt.getName()))
.filter(customPrompt -> prompt.startsWith(COMMAND_PREFIX + customPrompt.getName()))
.findFirst();

// if OK
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<h2>V0.4.9</h2>
<UL>
<LI>Fix #436: Only add new files to chat memory by @stephanj</LI>
<LI>Fix #438: Regression fix for /find command check by @stephanj</LI>
</UL>
<h2>V0.4.8</h2>
<UL>
Expand Down

0 comments on commit 23274fa

Please sign in to comment.