mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix SMTP bounce regexp (#16019)
Never trust me with regexp. Follow up to
01ef1d08fc,
which did not take into account codes in
the format X.X.XX (with the 2 digits on the end)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
class ConformBounceErrorCode < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
DB.exec(<<~SQL, regexp: '\d\.\d\.\d|\d\d\d')
|
||||
DB.exec(<<~SQL, regexp: '\d\.\d\.\d+|\d{3}')
|
||||
UPDATE email_logs
|
||||
SET bounce_error_code = (
|
||||
SELECT array_to_string(
|
||||
|
||||
Reference in New Issue
Block a user