Skip to content

Commit

Permalink
ServerConnectionReport: ホスト名のマッチ対象を広げる
Browse files Browse the repository at this point in the history
fixes #49
  • Loading branch information
ochaochaocha3 committed Jun 20, 2015
1 parent 999de39 commit e9fcb88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rgrb/plugin/server_connection_report/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module RGRB
module Plugin
module ServerConnectionReport
# ホスト名を表す正規表現
HOSTNAME_RE = /(?:[\w\.]+)/
HOSTNAME_RE =
/(?:[a-z\d](?:[-a-z\d]{0,61}[a-z\d])?
(?:\.[a-z\d](?:[-a-z\d]{0,61}[a-z\d])?)*)/ix
end
end
end

0 comments on commit e9fcb88

Please sign in to comment.