mirror of
https://github.com/gchq/CyberChef
synced 2025-12-10 05:13:23 +00:00
ESM: Tidied up recently ported ops
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
/**
|
||||
* Code functions.
|
||||
* Code resources.
|
||||
*
|
||||
* @author n1474335 [n1474335@gmail.com]
|
||||
*
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This tries to rename variable names in a code snippet according to a function.
|
||||
*
|
||||
* @param {string} input
|
||||
* @param {function} replacer - this function will be fed the token which should be renamed.
|
||||
* @param {function} replacer - This function will be fed the token which should be renamed.
|
||||
* @returns {string}
|
||||
*/
|
||||
export function replaceVariableNames(input, replacer) {
|
||||
|
||||
Reference in New Issue
Block a user