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
@ -2,8 +2,7 @@
|
||||
* @author Izai Alejandro Zalles Merino <zallesrene@gmail.com> (ialejandrozalles)
|
||||
* @copyright © 2025 Izai Alejandro Zalles Merino
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
*/
|
||||
import { decodeBase91 } from "../lib/Base91.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.inputType = "string";
|
||||
this.outputType = "ArrayBuffer";
|
||||
/* eslint-disable no-useless-escape */
|
||||
this.checks = [
|
||||
{
|
||||
pattern:
|
||||
@ -33,6 +33,7 @@ class FromBase91 extends Operation {
|
||||
"$",
|
||||
args: []
|
||||
}
|
||||
/* eslint-enable no-useless-escape */
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -152,8 +152,7 @@ TestRegister.addTests([
|
||||
args: [1, false, false]
|
||||
}
|
||||
]
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
name: "Magic Chain: Base91",
|
||||
input: "xD7ghoHB4!#/Tm_ogr$J9[JTrUJ*|jgSr!=EWoFB",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user