summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/contact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/contact.rb b/lib/contact.rb
index 0a7a449..4df29e8 100644
--- a/lib/contact.rb
+++ b/lib/contact.rb
@@ -57,6 +57,6 @@ class Contact
end
def valid_phone?
- @phone && @phone =~ /^\+*[0-9- ]{8,}$/
+ @phone && @phone =~ /^\+*[0-9\- ]{8,}$/
end
end