mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
36 lines
455 B
Perl
36 lines
455 B
Perl
### Empty
|
|
{
|
|
type => "op",
|
|
name => "verifyCC",
|
|
param => "\\d{15,16}",
|
|
input => "",
|
|
ret => 0,
|
|
},
|
|
|
|
### Non-matching
|
|
{
|
|
type => "op",
|
|
name => "verifyCC",
|
|
param => "\\d{15,16}",
|
|
input => "TestCase",
|
|
ret => 0,
|
|
},
|
|
|
|
### Bad CC#
|
|
{
|
|
type => "op",
|
|
name => "verifyCC",
|
|
param => "\\d{15,16}",
|
|
input => "01234567890123456",
|
|
ret => 0,
|
|
},
|
|
|
|
### Good CC#
|
|
{
|
|
type => "op",
|
|
name => "verifyCC",
|
|
param => "\\d{15,16}",
|
|
input => "372802490654059",
|
|
ret => 1,
|
|
},
|