-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: GROWI AI Next #9492
base: master
Are you sure you want to change the base?
feat: GROWI AI Next #9492
Conversation
|
…-when-page-add-button-is-clicked feat: Open PageSelectModal when page add button is clicked
This reverts commit 6a505a4.
…ctorStore interface
…modal feat: Modify PageSelectModal
…d memo functionality
…nt-list-view feat: Implement AiAssistantTree
…pdate-ai-assistant
…t changed, do not build VectorStore
…ate-ai-assistant
|
||
// check if the value is a grob pattern path | ||
if (value.includes('*')) { | ||
return isGrobPatternPath(value) && isCreatablePage(value.replace('*', '')); |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 3 days ago
To fix the problem, we need to ensure that all occurrences of the asterisk (*
) character in the value
string are replaced. This can be achieved by using a regular expression with the global flag (g
). Specifically, we should replace value.replace('*', '')
with value.replace(/\*/g, '')
.
-
Copy modified line R44
@@ -43,3 +43,3 @@ | ||
if (value.includes('*')) { | ||
return isGrobPatternPath(value) && isCreatablePage(value.replace('*', '')); | ||
return isGrobPatternPath(value) && isCreatablePage(value.replace(/\*/g, '')); | ||
} |
No description provided.