Sha256: 69bab10f97b4cb42512b0df3de3f16078b7dfe47e0c27e8b71be6aae9fe7f4bd
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module Dolos module CommonParsers def ws regex(/\s/) end def eol regex(/\n|\r\n|\r/) end def digit regex(/\d/) end def int digit.map(&:to_i) end # Capture as string def digits regex(/\d+/) end def alpha_num regex(/[a-zA-Z0-9]/) end def alpha regex(/[a-zA-Z]/) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dolos-0.2.0 | lib/dolos_common_parsers/common_parsers.rb |