mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04: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…
Add table
Add a link
Reference in a new issue