mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
ESM: Tidied up recently added operations
This commit is contained in:
parent
6a561185df
commit
3f3a3e0016
12 changed files with 2082 additions and 2069 deletions
|
@ -4,9 +4,10 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import xpath from "xpath";
|
||||
import Operation from "../Operation";
|
||||
import OperationError from "../errors/OperationError";
|
||||
import xmldom from "xmldom";
|
||||
import xpath from "xpath";
|
||||
|
||||
/**
|
||||
* XPath expression operation
|
||||
|
@ -48,7 +49,7 @@ class XPathExpression extends Operation {
|
|||
|
||||
let doc;
|
||||
try {
|
||||
doc = new DOMParser().parseFromString(input, "application/xml");
|
||||
doc = new xmldom.DOMParser().parseFromString(input, "application/xml");
|
||||
} catch (err) {
|
||||
throw new OperationError("Invalid input XML.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue