Skip to content

Commit fedae2f

Browse files
committed
Release v5.1.1
1 parent 498714d commit fedae2f

File tree

4 files changed

+29
-25
lines changed

4 files changed

+29
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v5.1.1
4+
5+
- Bugfix: respect fitzpatrick modifier when extracting emojis (thanks @sullis)
6+
37
## v5.1.0
48

59
- Many performance improvements to the parsing of the emojis (thanks @freva)

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _The missing emoji library for java._
1616
<dependency>
1717
<groupId>com.vdurmont</groupId>
1818
<artifactId>emoji-java</artifactId>
19-
<version>5.1.0</version>
19+
<version>5.1.1</version>
2020
</dependency>
2121
```
2222

@@ -25,46 +25,46 @@ You can also download the project, build it with `mvn clean install` and add the
2525
##### Via Gradle:
2626

2727
```gradle
28-
compile 'com.vdurmont:emoji-java:5.1.0'
28+
compile 'com.vdurmont:emoji-java:5.1.1'
2929
```
3030

3131
##### Via Direct Download:
3232

33-
- Use [releases](https://github.com/vdurmont/emoji-java/releases) tab to download the jar directly.
34-
- Download JSON-java dependency from http://mvnrepository.com/artifact/org.json/json.
33+
- Use [releases](https://github.com/vdurmont/emoji-java/releases) tab to download the jar directly.
34+
- Download JSON-java dependency from http://mvnrepository.com/artifact/org.json/json.
3535

3636
## How to use it?
3737

3838
### EmojiManager
3939

4040
The `EmojiManager` provides several static methods to search through the emojis database:
4141

42-
- `getForTag` returns all the emojis for a given tag
43-
- `getForAlias` returns the emoji for an alias
44-
- `getAll` returns all the emojis
45-
- `isEmoji` checks if a string is an emoji
46-
- `containsEmoji` checks if a string contains any emoji
42+
- `getForTag` returns all the emojis for a given tag
43+
- `getForAlias` returns the emoji for an alias
44+
- `getAll` returns all the emojis
45+
- `isEmoji` checks if a string is an emoji
46+
- `containsEmoji` checks if a string contains any emoji
4747

4848
You can also query the metadata:
4949

50-
- `getAllTags` returns the available tags
50+
- `getAllTags` returns the available tags
5151

5252
Or get everything:
5353

54-
- `getAll` returns all the emojis
54+
- `getAll` returns all the emojis
5555

5656
### Emoji model
5757

5858
An `Emoji` is a POJO (plain old java object), which provides the following methods:
5959

60-
- `getUnicode` returns the unicode representation of the emoji
61-
- `getUnicode(Fitzpatrick)` returns the unicode representation of the emoji with the provided Fitzpatrick modifier. If the emoji doesn't support the Fitzpatrick modifiers, this method will throw an `UnsupportedOperationException`. If the provided Fitzpatrick is null, this method will return the unicode of the emoji.
62-
- `getDescription` returns the (optional) description of the emoji
63-
- `getAliases` returns a list of aliases for this emoji
64-
- `getTags` returns a list of tags for this emoji
65-
- `getHtmlDecimal` returns an html decimal representation of the emoji
66-
- `getHtmlHexadecimal` returns an html decimal representation of the emoji
67-
- `supportsFitzpatrick` returns true if the emoji supports the Fitzpatrick modifiers, else false
60+
- `getUnicode` returns the unicode representation of the emoji
61+
- `getUnicode(Fitzpatrick)` returns the unicode representation of the emoji with the provided Fitzpatrick modifier. If the emoji doesn't support the Fitzpatrick modifiers, this method will throw an `UnsupportedOperationException`. If the provided Fitzpatrick is null, this method will return the unicode of the emoji.
62+
- `getDescription` returns the (optional) description of the emoji
63+
- `getAliases` returns a list of aliases for this emoji
64+
- `getTags` returns a list of tags for this emoji
65+
- `getHtmlDecimal` returns an html decimal representation of the emoji
66+
- `getHtmlHexadecimal` returns an html decimal representation of the emoji
67+
- `supportsFitzpatrick` returns true if the emoji supports the Fitzpatrick modifiers, else false
6868

6969
### Fitzpatrick modifiers
7070

@@ -173,9 +173,9 @@ The same applies for the methods `EmojiParser#parseToHtmlHexadecimal(String)` an
173173

174174
You can easily remove emojis from a string using one of the following methods:
175175

176-
- `EmojiParser#removeAllEmojis(String)`: removes all the emojis from the String
177-
- `EmojiParser#removeAllEmojisExcept(String, Collection<Emoji>)`: removes all the emojis from the String, except the ones in the Collection
178-
- `EmojiParser#removeEmojis(String, Collection<Emoji>)`: removes the emojis in the Collection from the String
176+
- `EmojiParser#removeAllEmojis(String)`: removes all the emojis from the String
177+
- `EmojiParser#removeAllEmojisExcept(String, Collection<Emoji>)`: removes all the emojis from the String, except the ones in the Collection
178+
- `EmojiParser#removeEmojis(String, Collection<Emoji>)`: removes the emojis in the Collection from the String
179179

180180
For example:
181181

@@ -198,7 +198,7 @@ System.out.println(EmojiParser.removeEmojis(str, collection));
198198

199199
You can search a string of mixed emoji/non-emoji characters and have all of the emoji characters returned as a Collection.
200200

201-
- `EmojiParser#extractEmojis(String)`: returns all emojis as a Collection. This will include duplicates if emojis are present more than once.
201+
- `EmojiParser#extractEmojis(String)`: returns all emojis as a Collection. This will include duplicates if emojis are present more than once.
202202

203203
## Credits
204204

emoji-table-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>com.vdurmont</groupId>
2020
<artifactId>emoji-java</artifactId>
21-
<version>5.1.0</version>
21+
<version>5.1.1</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.vdurmont</groupId>
66
<artifactId>emoji-java</artifactId>
7-
<version>5.1.0</version>
7+
<version>5.1.1</version>
88
<packaging>jar</packaging>
99

1010
<name>emoji-java</name>

0 commit comments

Comments
 (0)