emoji.py 331 B

1234567891011121314
  1. def match(emoji, export_filter):
  2. """
  3. Provides a match based on filters (provided through the flag -e).
  4. """
  5. for k, v in export_filter:
  6. if k not in emoji:
  7. if '!' not in v:
  8. return False
  9. elif '*' not in v and emoji.get(k) not in v:
  10. return False
  11. return True