Merge fdfd8b38607bc032f61ce0367148c13bfba3ec11 into 4290ea753912378913b1f3f54e0fc5720afeda5d

This commit is contained in:
Thanatos 2026-08-06 19:12:44 +08:00 committed by GitHub
commit 47ee218bbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ export function affineEncode(input, args) {
b = args[1]; b = args[1];
let output = ""; let output = "";
if (!/^\+?(0|[1-9]\d*)$/.test(a) || !/^\+?(0|[1-9]\d*)$/.test(b)) { if (!/^[+-]?(0|[1-9]\d*)$/.test(a) || !/^[+-]?(0|[1-9]\d*)$/.test(b)) {
throw new OperationError("The values of a and b can only be integers."); throw new OperationError("The values of a and b can only be integers.");
} }