view modules/stdlib/spec/support/shared_data.rb @ 320:99e3ca448d55

Fix Remi PHP on CentOS 8 It uses the new "modules" approach, so we need to use a new package provider They also use different signing keys
author IBBoard <dev@ibboard.co.uk>
date Sun, 01 Mar 2020 10:58:00 +0000
parents c42fb28cff86
children
line wrap: on
line source

module SharedData
  IPV4_PATTERNS = [
    '0.0.0.0',
    '1.2.3.4',
    '10.10.10.10',
    '127.0.0.1',
    '192.88.99.0',
    '194.232.104.150',
    '224.0.0.0',
    '244.24.24.24',
    '255.255.255.255',
    '8.8.8.8',
    '8.8.8.8/0',
    '8.8.8.8/16',
    '8.8.8.8/255.255.0.0',
    '8.8.8.8/32',
  ].freeze
  IPV4_NEGATIVE_PATTERNS = [
    '',
    '0000',
    '0.0.0.0.',
    '0.0.0.0./0.0.0.0.',
    '0.0.0.0./1',
    '0.0.0.0.0',
    '0.0.0.0/0.0.0.0.',
    '0.0.0.256',
    '0.0.0',
    '1.2.3.4.5',
    '1.2.3',
    '10.010.10.10',
    '2001:0db8:85a3:0000:0000:8a2e:0370:73342001:0db8:85a3:0000:0000:8a2e:0370:7334',
    '4.4.4',
    '77',
    '9999.9999.9999.9999',
    'affe::beef',
    'nope',
  ].freeze
end