mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Updated eslint whitespace rules
This commit is contained in:
parent
ebf2258715
commit
e803d208e8
51 changed files with 801 additions and 793 deletions
|
@ -16,7 +16,7 @@ var Punycode = {
|
|||
* @default
|
||||
*/
|
||||
IDN: false,
|
||||
|
||||
|
||||
/**
|
||||
* To Punycode operation.
|
||||
*
|
||||
|
@ -26,15 +26,15 @@ var Punycode = {
|
|||
*/
|
||||
runToAscii: function(input, args) {
|
||||
var idn = args[0];
|
||||
|
||||
|
||||
if (idn) {
|
||||
return punycode.ToASCII(input);
|
||||
} else {
|
||||
return punycode.encode(input);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* From Punycode operation.
|
||||
*
|
||||
|
@ -44,12 +44,12 @@ var Punycode = {
|
|||
*/
|
||||
runToUnicode: function(input, args) {
|
||||
var idn = args[0];
|
||||
|
||||
|
||||
if (idn) {
|
||||
return punycode.ToUnicode(input);
|
||||
} else {
|
||||
return punycode.decode(input);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue