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

Force method to return boolean value.

parent 46a49fdd
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ module Geocoder
# dot-delimited 8-bit numbers.
#
def ip_address?(value)
value.match /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/
!!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