mirror of
https://github.com/gchq/CyberChef
synced 2025-12-11 05:43:28 +00:00
Merge branch 'newMagic' of https://github.com/n1073645/CyberChef into n1073645-newMagic
This commit is contained in:
@@ -163,7 +163,7 @@ class RegularExpression extends Operation {
|
||||
case "List matches with capture groups":
|
||||
return Utils.escapeHtml(regexList(input, regex, displayTotal, true, true));
|
||||
default:
|
||||
return "Error: Invalid output format";
|
||||
throw new OperationError("Error: Invalid output format");
|
||||
}
|
||||
} catch (err) {
|
||||
throw new OperationError("Invalid regex. Details: " + err.message);
|
||||
|
||||
Reference in New Issue
Block a user