2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

Ignore case when removing mailing list name from subject

This commit is contained in:
Gerhard Schlager 2018-02-12 21:41:58 +01:00
parent 4dfe659189
commit 479f7ed18f

View file

@ -199,7 +199,7 @@ module ImportScripts::Mbox
# TODO: make the list name (or maybe multiple names) configurable # TODO: make the list name (or maybe multiple names) configurable
# Strip mailing list name from subject # Strip mailing list name from subject
subject = subject.gsub(/\[#{Regexp.escape(list_name)}\]/, '').strip subject = subject.gsub(/\[#{Regexp.escape(list_name)}\]/i, '').strip
clean_subject(subject) clean_subject(subject)
end end