Sha256: 445f1290ac79e409f9dc71b674e7ee517f35044fc2144bf7814032ddd4e4ec8d

Contents?: true

Size: 379 Bytes

Versions: 48

Compression:

Stored size: 379 Bytes

Contents

module Incline
  module NumberFormats

    ##
    # Verifies a number with comma delimiters included.
    #
    # 1,234,567.89e0
    WITH_DELIMITERS = /\A[+-]?(0|[1-9][0-9]{0,2}(,[0-9]{3})*)(\.[0-9]*)?(e\d+)?\z/i

    ##
    # Verifies a number without comma delimiters included.
    #
    # 1234567.89e0
    WITHOUT_DELIMITERS = /\A[+-]?([0-9]+)(\.[0-9]*)?(e\d+)?\z/i

  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 lib/incline/number_formats.rb
incline-0.3.13 lib/incline/number_formats.rb
incline-0.3.12 lib/incline/number_formats.rb
incline-0.3.11 lib/incline/number_formats.rb
incline-0.3.10 lib/incline/number_formats.rb
incline-0.3.9 lib/incline/number_formats.rb
incline-0.3.8 lib/incline/number_formats.rb
incline-0.3.7 lib/incline/number_formats.rb
incline-0.3.6 lib/incline/number_formats.rb
incline-0.3.5 lib/incline/number_formats.rb
incline-0.3.4 lib/incline/number_formats.rb
incline-0.3.3 lib/incline/number_formats.rb
incline-0.3.2 lib/incline/number_formats.rb
incline-0.3.1 lib/incline/number_formats.rb
incline-0.3.0 lib/incline/number_formats.rb
incline-0.2.36 lib/incline/number_formats.rb
incline-0.2.35 lib/incline/number_formats.rb
incline-0.2.34 lib/incline/number_formats.rb
incline-0.2.28 lib/incline/number_formats.rb
incline-0.2.27 lib/incline/number_formats.rb