Skip to content
Snippets Groups Projects
Commit 2df93e02 authored by Alex Reisner's avatar Alex Reisner
Browse files

Add clarifying comment.

parent 828e4e9d
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ module Geocoder
##
# Does the given value look like an IP address?
#
# Does not check for actual validity, just the appearance of four
# dot-delimited 8-bit numbers.
#
def ip_address?(value)
value.match /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment