cyberchef 9.37.1 → 9.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberchef",
3
- "version": "9.37.1",
3
+ "version": "9.37.2",
4
4
  "description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
5
5
  "author": "n1474335 <n1474335@gmail.com>",
6
6
  "homepage": "https://gchq.github.io/CyberChef",
@@ -723,8 +723,8 @@ class Utils {
723
723
  }
724
724
 
725
725
  if (removeScriptAndStyle) {
726
- htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script>/gi, htmlStr);
727
- htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style>/gi, htmlStr);
726
+ htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script[^>]*>/gi, htmlStr);
727
+ htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style[^>]*>/gi, htmlStr);
728
728
  }
729
729
  return htmlStr.replace(/<[^>]+>/g, "");
730
730
  }
@@ -43,9 +43,9 @@ class ToBase45 extends Operation {
43
43
  * @returns {string}
44
44
  */
45
45
  run(input, args) {
46
+ if (!input) return "";
46
47
  input = new Uint8Array(input);
47
48
  const alphabet = Utils.expandAlphRange(args[0]);
48
- if (!input) return "";
49
49
 
50
50
  const res = [];
51
51