]> cat aescling's git repositories - mastodon.git/commit
Maintain case-insensitivity when merging multiple matchers (#213)
authorDavid Yip <yipdw@member.fsf.org>
Mon, 13 Nov 2017 17:06:02 +0000 (11:06 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Mon, 13 Nov 2017 17:06:02 +0000 (11:06 -0600)
commit656d54e9451dc99e212513b799a4deb4d1227bf0
treef1269f1ccc89ae14d119ed97a1eeaf121c14b6c7
parente1b7785788aa3887b06a5b2b10731b4b5d66d7e3
Maintain case-insensitivity when merging multiple matchers (#213)

When given two regexps, Regexp.union preserves the options set (or not
set) on each regex; this meant that none of the multiline (m),
case-insensitivity (i), or extended syntax (x) options were set.  Our
regexps are written expecting the m, i, and x options were set on all of
them, so we need to make sure that we preserve that behavior.
app/models/glitch/keyword_mute.rb
spec/models/glitch/keyword_mute_spec.rb