mirror of
https://github.com/gchq/CyberChef
synced 2025-01-22 17:25:10 +00:00
dont decapitalise all-caps operation names
This commit is contained in:
parent
615cb561e4
commit
7e8f78acaa
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue