🐛 Potential fix for code scanning alert no. 3: Replacement of a substring with itself
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -26,9 +26,7 @@ function formatKeyBinding(keyBinding: string): string {
|
|||||||
|
|
||||||
return keyBinding
|
return keyBinding
|
||||||
.replace("Mod", isMac ? "Cmd" : "Ctrl")
|
.replace("Mod", isMac ? "Cmd" : "Ctrl")
|
||||||
.replace("Shift", "Shift")
|
|
||||||
.replace("Alt", isMac ? "Option" : "Alt")
|
.replace("Alt", isMac ? "Option" : "Alt")
|
||||||
.replace("Ctrl", isMac ? "Ctrl" : "Ctrl")
|
|
||||||
.replace(/-/g, " + ");
|
.replace(/-/g, " + ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user