Skip to content

Commit

Permalink
add extract-emoji's docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Jun 14, 2024
1 parent bce3801 commit e6869f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pr_lint/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@


def extract_emoji(string: str) -> set[str]:
"""
Extracts emojis from a string
Args:
string: The string to extract emojis from
Returns:
A set of emojis
"""
return set(emoji_pattern.findall(string))


Expand Down

0 comments on commit e6869f9

Please sign in to comment.