Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
felldo committed Sep 22, 2023
1 parent cd5584d commit b005287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ String text = EmojiManager.removeAllEmojis("Hello 😀 World 👍"); // "Hello
#### Remove specific emojis from a string

```java
String text = EmojiManager.removeEmojis("Hello 😀 World 👍",Collections.singletonList("😀")); // "Hello World 👍"
String text = EmojiManager.removeEmojis("Hello 😀 World 👍", EmojiManager.getEmoji("😀").orElseThrow(RuntimeException::new)); // "Hello World 👍"
```

#### Replace all emojis in a string
Expand All @@ -121,7 +121,7 @@ String text = EmojiManager.replaceAllEmojis("Hello 😀 World 👍", Emoji::getH
#### Replace specific emojis in a string

```java
String text = EmojiManager.replaceEmojis("Hello 😀 World 👍","<an emoji was here>",Collections.singletonList("😀")); // "Hello <an emoji was here> World 👍"
String text = EmojiManager.replaceEmojis("Hello 😀 World 👍", "<an emoji was here>", EmojiManager.getEmoji("😀").orElseThrow(RuntimeException::new)); // "Hello <an emoji was here> World 👍"
```

### Emoji Object
Expand Down

0 comments on commit b005287

Please sign in to comment.