]> cat aescling's git repositories - mastodon.git/commit
Replace =~ with #matches?. #208.
authorDavid Yip <yipdw@member.fsf.org>
Thu, 16 Nov 2017 00:26:21 +0000 (18:26 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Thu, 16 Nov 2017 00:27:25 +0000 (18:27 -0600)
commit08652baab018e65cfc4e1fbcfc909ff01f96ea60
tree3f0f6a7521a57b40400af10bd0460177e898b0bd
parent8fc54890e50de024683d9b763b8ed8f82d46433a
Replace =~ with #matches?.  #208.

=~ made sense when we were passing it through to a regex, but we're no
longer doing that: TagMatcher looks at individual tags and returns a
value that *looks* like what you get out of #=~ but really isn't that
meaningful.  Probably a good idea to not subvert convention like this
and instead use a name with guessable intent.
app/lib/feed_manager.rb
app/models/glitch/keyword_mute.rb
spec/models/glitch/keyword_mute_spec.rb