Skip to content

Commit

Permalink
Merge pull request #55 from lynx1983/master
Browse files Browse the repository at this point in the history
Set regexp to greedy mode
  • Loading branch information
hjr265 committed Mar 11, 2018
2 parents b605cb8 + 2fbcec3 commit f576da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.coffee
Expand Up @@ -83,7 +83,7 @@ util = require 'util'

socket.on 'close', (err) =>
if options.follow > 0
match = data.replace(/\r/gm, '').match /(ReferralServer|Registrar Whois|Whois Server|WHOIS Server|Registrar WHOIS Server):[^\S\n]*(r?whois:\/\/)?(.*?)/
match = data.replace(/\r/gm, '').match /(ReferralServer|Registrar Whois|Whois Server|WHOIS Server|Registrar WHOIS Server):[^\S\n]*(r?whois:\/\/)?(.*)/
if match? and match[3] != server.host
options = _.extend {}, options,
follow: options.follow - 1
Expand Down

0 comments on commit f576da9

Please sign in to comment.