Method: Mailmap::Map#include_name?
- Defined in:
- lib/mailmap/map.rb
#include_name?(name) ⇒ Boolean
Return true if the name is defined as either of proper or commit name, otherwise false. The comparison is case-insensitive.
79 80 81 82 83 84 |
# File 'lib/mailmap/map.rb', line 79 def include_name?(name) name = name.downcase any? do |proper_name, _proper_email, commit_name, _commit_email| proper_name&.downcase == name || commit_name == name end end |