mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Modified comments in Code.js
This commit is contained in:
parent
a840504b3d
commit
bf91352fce
1 changed files with 1 additions and 2 deletions
|
@ -273,8 +273,7 @@ const Code = {
|
||||||
.replace(/\s*,\s*/g, ", ")
|
.replace(/\s*,\s*/g, ", ")
|
||||||
.replace(/\s*{/g, " {")
|
.replace(/\s*{/g, " {")
|
||||||
.replace(/}\n/g, "}\n\n")
|
.replace(/}\n/g, "}\n\n")
|
||||||
// I was told not to look at this.
|
// Hacky horribleness
|
||||||
// I looked anyhow.
|
|
||||||
.replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)\s*\n([^{])/gim, "$1 ($2)\n $3")
|
.replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)\s*\n([^{])/gim, "$1 ($2)\n $3")
|
||||||
.replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)([^{])/gim, "$1 ($2) $3")
|
.replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)([^{])/gim, "$1 ($2) $3")
|
||||||
.replace(/else\s*\n([^{])/gim, "else\n $1")
|
.replace(/else\s*\n([^{])/gim, "else\n $1")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue