aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-12-03 22:09:49 -0500
committerGeorge Claghorn <george@basecamp.com>2018-12-03 22:11:37 -0500
commitb8f2835762dc064b44da1ef552140ad610bf6afa (patch)
tree1f507f0551625bd0658652edcd7b80ad46ac838b /lib
parent9d798ca9c038059df479233ddc4d35711826bd93 (diff)
downloadrails-b8f2835762dc064b44da1ef552140ad610bf6afa.tar.gz
rails-b8f2835762dc064b44da1ef552140ad610bf6afa.tar.bz2
rails-b8f2835762dc064b44da1ef552140ad610bf6afa.zip
Match all valid error codes
Diffstat (limited to 'lib')
-rw-r--r--lib/action_mailbox/postfix_relayer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_mailbox/postfix_relayer.rb b/lib/action_mailbox/postfix_relayer.rb
index 268ca5661b..5a0eb7dca3 100644
--- a/lib/action_mailbox/postfix_relayer.rb
+++ b/lib/action_mailbox/postfix_relayer.rb
@@ -11,7 +11,7 @@ module ActionMailbox
end
def failure?
- output.match?(/\A[45]\.\d\.\d /)
+ output.match?(/\A[45]\.\d{1,3}\.\d{1,3}(\s|\z)/)
end
end