Skip to content

Commit

Permalink
Issue-63: Update hostname regex to allow modern hostnames (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenne authored and mvayngrib committed Jan 17, 2019
1 parent 8ade57d commit ad436b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UdpSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var Sockets = NativeModules.UdpSockets
var base64 = require('base64-js')
var ipRegex = require('ip-regex')
// RFC 952 hostname format
var hostnameRegex = /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/;
var hostnameRegex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;
var noop = function () {}
var instances = 0
var STATE = {
Expand Down

0 comments on commit ad436b1

Please sign in to comment.