Sha256: 3ef88ee3460417f44bbbaab4350cc87afa97e98296236cb89037fb36ee6a5620

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

# encoding: utf-8

module SportDb

# collection of regex patterns for reuse (SportDb specific)

### todo: add a patterns.md page to  github ??
##  - add regexper pics??

  TEAM_KEY_RE = %r{ \A
                      [a-z_][a-z0-9_]*
                     \z}x
  TEAM_KEY_MESSAGE = "expected one or more lowercase letters a-z (or 0-9 or _; must start with a-z or _)"


  # must start w/ letter A-Z (2nd,3rd,4th or 5th can be number)
  TEAM_CODE_RE = %r{ \A
                       [A-Z_][A-Z0-9_]*
                      \z}x
  TEAM_CODE_MESSAGE = "expected one or more uppercase letters A-Z (or 0-9 or _; must start with A-Z or _)"


end # module SportDb

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sportdb-models-2.1.0 lib/sportdb/models/formats.rb
sportdb-models-2.0.2 lib/sportdb/models/formats.rb
sportdb-models-2.0.1 lib/sportdb/models/formats.rb
sportdb-models-2.0.0 lib/sportdb/models/formats.rb