Skip to content

Commit 7d4e554

Browse files
committed
Tweaks to P-List Viewer operation
1 parent 2858a74 commit 7d4e554

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

src/core/config/Categories.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457
"Frequency distribution",
458458
"Index of Coincidence",
459459
"Chi Square",
460-
"PLIST Viewer",
460+
"P-list Viewer",
461461
"Disassemble x86",
462462
"Pseudo-Random Number Generator",
463463
"Generate UUID",

src/core/operations/PLISTViewer.mjs

+10-23
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,23 @@
77
import Operation from "../Operation.mjs";
88

99
/**
10-
* PLIST Viewer operation
10+
* P-list Viewer operation
1111
*/
12-
class PLISTViewer extends Operation {
12+
class PlistViewer extends Operation {
1313

1414
/**
15-
* PLISTViewer constructor
15+
* PlistViewer constructor
1616
*/
1717
constructor() {
1818
super();
1919

20-
this.name = "PLIST Viewer";
21-
this.module = "Other";
22-
this.description = "Converts PLISTXML file into a human readable format.";
23-
this.infoURL = "";
20+
this.name = "P-list Viewer";
21+
this.module = "Default";
22+
this.description = "In the macOS, iOS, NeXTSTEP, and GNUstep programming frameworks, property list files are files that store serialized objects. Property list files use the filename extension .plist, and thus are often referred to as p-list files.<br><br>This operation displays plist files in a human readable format.";
23+
this.infoURL = "https://wikipedia.org/wiki/Property_list";
2424
this.inputType = "string";
2525
this.outputType = "string";
26-
this.args = [
27-
/* Example arguments. See the project wiki for full details.
28-
{
29-
name: "First arg",
30-
type: "string",
31-
value: "Don't Panic"
32-
},
33-
{
34-
name: "Second arg",
35-
type: "number",
36-
value: 42
37-
}
38-
*/
39-
];
26+
this.args = [];
4027
}
4128

4229
/**
@@ -46,7 +33,7 @@ class PLISTViewer extends Operation {
4633
*/
4734
run(input, args) {
4835

49-
// Regexes are designed to transform the xml format into a reasonably more readable string format.
36+
// Regexes are designed to transform the xml format into a more readable string format.
5037
input = input.slice(input.indexOf("<plist"))
5138
.replace(/<plist.+>/g, "plist => ")
5239
.replace(/<dict>/g, "{")
@@ -143,4 +130,4 @@ class PLISTViewer extends Operation {
143130
}
144131
}
145132

146-
export default PLISTViewer;
133+
export default PlistViewer;

0 commit comments

Comments
 (0)