import re

from .base import RegexFilth


class PassportFilth(RegexFilth):
    type = 'passport'

    # Passport regex adapted from:
    # http://regexlib.com/REDetails.aspx?regexp_id=2390

    regex = re.compile((
        "[0-9]{10}"                                 # First 10 digits
        "(?:((GBR)|(GBD)|(GBO)|(GBS)|(GBP)|(GBN))"  # Country issue code
        "[0-9]{7}[U,M,F]{1}[0-9]{7,9})?"            # Suffix
    ), re.VERBOSE)

import re

from .base import RegexFilth


class PassportFilth(RegexFilth):
    type = 'passport'

    # Passport regex adapted from:
    # http://regexlib.com/REDetails.aspx?regexp_id=2390

    regex = re.compile((
        "[0-9]{10}"                                 # First 10 digits
        "(?:((GBR)|(GBD)|(GBO)|(GBS)|(GBP)|(GBN))"  # Country issue code
        "[0-9]{7}[U,M,F]{1}[0-9]{7,9})?"            # Suffix
    ), re.VERBOSE)

# Passport regex adapted from: # http://regexlib.com/REDetails.aspx?regexp_id=2390 # First 10 digits # Country issue code # Suffix