mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 22:21:01 +01:00
dont decapitalise all-caps operation names
This commit is contained in:
parent
615cb561e4
commit
7e8f78acaa
@ -134,5 +134,9 @@ export function help(operations, searchTerm) {
|
||||
* @returns {String} decapitalised
|
||||
*/
|
||||
export function decapitalise(name) {
|
||||
// Don't decapitalise names that are purely uppercase
|
||||
if (/^[A-Z0-9]+$/g.test(name)) {
|
||||
return name;
|
||||
}
|
||||
return `${name.charAt(0).toLowerCase()}${name.substr(1)}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user