Sha256: 01d8a693ca398fe4f7703680d217ef69d6eb3d5ac93bc550c91740198a128cb3

Contents?: true

Size: 623 Bytes

Versions: 14

Compression:

Stored size: 623 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}/
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

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-0.0.30 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.29 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.28 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.27 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.26 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.25 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.24 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.23 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.22 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.21 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.20 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.19 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.18 lib/rspeckled/helpers/patterns.rb
rspeckled-0.0.17 lib/rspeckled/helpers/patterns.rb