mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-26 17:38:28 +03:00
Fix validity check
This commit is contained in:
@@ -113,7 +113,7 @@ export function validSubmittedData(userAgent: string): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
return new RegExp(config.validityCheck.userAgent).test(userAgent);
|
||||
return !new RegExp(config.validityCheck.userAgent).test(userAgent);
|
||||
}
|
||||
|
||||
export async function canSubmitGlobal(userID: HashedUserID): Promise<CanSubmitGlobalResult> {
|
||||
|
||||
Reference in New Issue
Block a user