Don't quote object properties

This commit is contained in:
pyoor 2017-06-30 13:21:23 -07:00
parent 236ccfeddb
commit 3a44c6065b

View file

@ -77,22 +77,22 @@ make.network = {
'2001:db8::1:1:1:1:1'
]
},
'hostname': function () {
hostname: function () {
return random.pick([this.randomIPv4, this.randomIPv6, this.goodHostnames, this.badHostnames])
},
'port': function () {
port: function () {
return random.pick([80, 443, 21, 23, 9310])
},
'hash': function () {
hash: function () {
return random.pick(['', '#', '#main-content', function () { return '#' + make.text.any() }])
},
'path': function () {
path: function () {
return random.pick(['', '/', '/index.html', function () { return '/' + make.text.any() }])
},
'protocol': function () {
protocol: function () {
return random.pick(['http:', 'https:', 'ftp:', 'telnet:', 'chrome:', 'resource:'])
},
'search': function () {
search: function () {
return random.pick(['', '?', '?foo=bar', function () { return '?' + make.text.any() }])
},
randomBitmask: function (list) {