mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Remove multi-line operations
This commit is contained in:
@@ -34,10 +34,8 @@ class FromGeohash extends Operation {
|
||||
* @returns {string}
|
||||
*/
|
||||
run(input, args) {
|
||||
return input.split("\n").map(line => {
|
||||
const coords = geohash.decode(line);
|
||||
return [coords.latitude, coords.longitude].join(",");
|
||||
}).join("\n");
|
||||
const coords = geohash.decode(input);
|
||||
return [coords.latitude, coords.longitude].join(",");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user