Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Commit 99c45ca

Browse files
authored
BUGFIX: match backend email validation (#6)
1 parent 78749ea commit 99c45ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/uservoice/user_voice.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
require 'oauth'
1010

1111
module UserVoice
12-
EMAIL_FORMAT = %r{^(\w[-+.\w!\#\$%&'\*\+\-/=\?\^_`\{\|\}~]*@([-\w]*\.)+[a-zA-Z]{2,9})$}
12+
EMAIL_FORMAT = %r{^([-+.\w][-+.\w!\#\$%&'\*\+\-/=\?\^_`\{\|\}~]*@([-\w]+\.)+[a-zA-Z]{2,32})$}
1313
DEFAULT_HEADERS = { 'Content-Type'=> 'application/json', 'Accept'=> 'application/json', 'API-Client' => "uservoice-ruby-#{UserVoice::VERSION}" }
1414

1515
class APIError < RuntimeError

lib/uservoice/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module UserVoice
2-
VERSION = "0.0.11"
2+
VERSION = "0.0.12"
33
end

0 commit comments

Comments
 (0)