Sha256: 01f040017b8836d18153209bb4b219cbf8f91c9d62d752b982860d38b29dc182
Contents?: true
Size: 902 Bytes
Versions: 11
Compression:
Stored size: 902 Bytes
Contents
# frozen_string_literal: true def uuid_regex /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i end def iso8601_regex /(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?((?:[\+\-]\d{2}:\d{2})|Z)?/ end def base64_digit_regex %r{[a-z0-9\+/=]}i end def hex_digit_regex /[a-f0-9]/i end def guid_regex /[a-f0-9]{32}/i end def md5_regex /[a-f0-9]{32}/i end def sha_regex /[a-f0-9]{64}/i end def test_email_regex /user\d+@example.com/ end def test_username_regex /username\d+/ end def json_web_token_base64_regex %r{[A-Za-z0-9_/\+\=\-]} end def json_web_token_regex / (#{json_web_token_base64_regex}+?\.){2} #{json_web_token_base64_regex}+? /x end def encrypted_json_web_token_regex / (#{json_web_token_base64_regex}+?\.){4} #{json_web_token_base64_regex}+? /x end
Version data entries
11 entries across 11 versions & 1 rubygems