Sha256: 13cea18b95fe578d20dbd7068941169334541e0b1d5597db1acc22f935ac88f4

Contents?: true

Size: 593 Bytes

Versions: 10

Compression:

Stored size: 593 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}+?\.){2}
    #{json_web_token_base64_regex}+?
    \z
  /x
end

def encrypted_json_web_token_regex
  /
    \A
    (#{json_web_token_base64_regex}+?\.){4}
    #{json_web_token_base64_regex}+?
    \z
  /x
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rspeckled-0.0.16 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.15 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.14 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.13 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.12 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.11 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.10 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.9 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.8 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.7 lib/rspeckled/helpers/patterns.rb