-
Notifications
You must be signed in to change notification settings - Fork 0
WIP: Windows Menu Support #24
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
base: main
Are you sure you want to change the base?
Conversation
…/reactotron-macos into feature/windows-menu
return shortcut | ||
.replace(/cmd/gi, "Ctrl") | ||
.replace(/shift/gi, "Shift") | ||
.replace(/\+/g, "+") |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 18 days ago
To fix this issue, simply remove the redundant line .replace(/\+/g, "+")
from the formatShortcut
function in app/components/Menu/MenuDropdownItem.tsx. Removing this will not affect the logic, as the split and map steps will still operate as needed. No further changes, imports, or method updates are required.
@@ -94,7 +94,6 @@ | ||
return shortcut | ||
.replace(/cmd/gi, "Ctrl") | ||
.replace(/shift/gi, "Shift") | ||
.replace(/\+/g, "+") | ||
.split("+") | ||
.map((part) => part.charAt(0).toUpperCase() + part.slice(1)) | ||
.join("+") |
No description provided.