Sha256: 955df65fb81e45c7ad6585386f272edbe6b6030ff32e0c511bf9689a94281fa0
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module Dolos module CommonParsers def ws regex(/\s/) end def ws_rep0 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.1 | lib/dolos_common_parsers/common_parsers.rb |