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