mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Ignore case when removing mailing list name from subject
This commit is contained in:
@@ -199,7 +199,7 @@ module ImportScripts::Mbox
|
||||
|
||||
# TODO: make the list name (or maybe multiple names) configurable
|
||||
# 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)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user