mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix title ID validation
This commit is contained in:
parent
ff777a06ab
commit
73feb930ac
|
|
@ -42,8 +42,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
|||
debug('[%s#%d] ' + msg, publisher, i, ...args);
|
||||
};
|
||||
|
||||
if (!title.id.match(/^0100([0-9a-f]{8})[02468ace]000$/)) {
|
||||
if (title.id.match(/^0100([0-9a-f]{8})[02468ace]000$/i))
|
||||
if (!title.id.match(/^0[14]00([0-9a-f]{8})[02468ace]000$/)) {
|
||||
if (title.id.match(/^0[14]00([0-9a-f]{8})[02468ace]000$/i))
|
||||
warn('Invalid title ID, must be lowercase hex', title.id);
|
||||
else warn('Invalid title ID', title.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user