chore(lint): satisfy eslint for Base91 checks and Magic test formatting
- Disable no-useless-escape locally for Base91 regex string assembly - Fix trailing spaces - Tidy comma placement in Magic tests Authored-by: Izai Alejandro Zalles Merino <zallesrene@gmail.com>
This commit is contained in:
parent
2984d80b38
commit
d822863b97
@ -3,7 +3,6 @@
|
|||||||
* @copyright © 2025 Izai Alejandro Zalles Merino
|
* @copyright © 2025 Izai Alejandro Zalles Merino
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { decodeBase91 } from "../lib/Base91.mjs";
|
import { decodeBase91 } from "../lib/Base91.mjs";
|
||||||
import Operation from "../Operation.mjs";
|
import Operation from "../Operation.mjs";
|
||||||
|
|
||||||
@ -23,6 +22,7 @@ class FromBase91 extends Operation {
|
|||||||
this.infoURL = "https://en.wikipedia.org/wiki/Binary-to-text_encoding#Encoding_standards";
|
this.infoURL = "https://en.wikipedia.org/wiki/Binary-to-text_encoding#Encoding_standards";
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "ArrayBuffer";
|
this.outputType = "ArrayBuffer";
|
||||||
|
/* eslint-disable no-useless-escape */
|
||||||
this.checks = [
|
this.checks = [
|
||||||
{
|
{
|
||||||
pattern:
|
pattern:
|
||||||
@ -33,6 +33,7 @@ class FromBase91 extends Operation {
|
|||||||
"$",
|
"$",
|
||||||
args: []
|
args: []
|
||||||
}
|
}
|
||||||
|
/* eslint-enable no-useless-escape */
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -152,8 +152,7 @@ TestRegister.addTests([
|
|||||||
args: [1, false, false]
|
args: [1, false, false]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
,
|
|
||||||
{
|
{
|
||||||
name: "Magic Chain: Base91",
|
name: "Magic Chain: Base91",
|
||||||
input: "xD7ghoHB4!#/Tm_ogr$J9[JTrUJ*|jgSr!=EWoFB",
|
input: "xD7ghoHB4!#/Tm_ogr$J9[JTrUJ*|jgSr!=EWoFB",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user