Sha256: 93814a87a1b1dee88ebfaca45f73ee75037e9316f148e3c6ca5c3e2ca4d0649d

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

def uuid_regex
  /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/
end

def guid_regex
  /[a-f0-9]{32}/
end

def sha_regex
  /[a-f0-9]{64}/
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
  /
    \A
    (#{json_web_token_base64_regex}+?\.){4}
    #{json_web_token_base64_regex}+?
    \z
  /x
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspeckled-0.0.6 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.5 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.4 lib/rspeckled/helpers/patterns.rb