Compare commits

...
6 Commits
7 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cyberchef",
"version": "8.1.2",
"version": "8.1.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cyberchef",
"version": "8.1.2",
"version": "8.1.4",
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
"author": "n1474335 <n1474335@gmail.com>",
"homepage": "https://gchq.github.io/CyberChef",
+1 -1
View File
@@ -774,7 +774,7 @@ class Utils {
args = m[2]
.replace(/"/g, '\\"') // Escape double quotes
.replace(/(^|,|{|:)'/g, '$1"') // Replace opening ' with "
.replace(/([^\\])'(,|:|}|$)/g, '$1"$2') // Replace closing ' with "
.replace(/([^\\]|[^\\]\\\\)'(,|:|}|$)/g, '$1"$2') // Replace closing ' with "
.replace(/\\'/g, "'"); // Unescape single quotes
args = "[" + args + "]";
+5 -2
View File
@@ -115,7 +115,7 @@ class App {
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
* whole recipe.
*/
bake(step) {
bake(step=false) {
if (this.baking) return;
// Reset attemptHighlight flag
@@ -533,7 +533,9 @@ class App {
compileInfo += " - " + window.compileMessage;
}
document.getElementById("notice").innerHTML = compileInfo;
const notice = document.getElementById("notice");
notice.innerHTML = compileInfo;
notice.setAttribute("title", Utils.stripHtmlTags(window.compileMessage));
}
@@ -634,6 +636,7 @@ class App {
* @param {event} e
*/
stateChange(e) {
this.progress = 0;
this.autoBake();
// Set title
+2 -4
View File
@@ -37,7 +37,7 @@ class OperationsWaiter {
searchOperations(e) {
let ops, selected;
if (e.type === "search") { // Search
if (e.type === "search" || e.keyCode === 13) { // Search or Return
e.preventDefault();
ops = document.querySelectorAll("#search-results li");
if (ops.length) {
@@ -48,9 +48,7 @@ class OperationsWaiter {
}
}
if (e.keyCode === 13) { // Return
e.preventDefault();
} else if (e.keyCode === 40) { // Down
if (e.keyCode === 40) { // Down
e.preventDefault();
ops = document.querySelectorAll("#search-results li");
if (ops.length) {
+1 -1
View File
@@ -155,7 +155,7 @@
<a href="cyberchef.htm" download>Download CyberChef <i class="material-icons">file_download</i></a>
<% } %>
</div>
<div class="col" style="text-align: center;">
<div class="col-md-6" id="notice-wrapper">
<span id="notice">
<script type="text/javascript">
// Must be text/javascript rather than application/javascript otherwise IE won't recognise it...
+7
View File
@@ -21,3 +21,10 @@
vertical-align: middle;
padding-right: 10px;
}
#notice-wrapper {
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}