Skip to content

Commit

Permalink
Merge pull request #2 from baptisteArno/chore/add-v14
Browse files Browse the repository at this point in the history
Add v14.0
  • Loading branch information
leodr authored Dec 26, 2021
2 parents 75a3206 + d2e1574 commit 6433c4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import { createEmojiList } from "generate-emoji-list";
const { createEmojiList } = require("generate-emoji-list");

const emojiList = await createEmojiList({
unicodeVersion: "13.0",
unicodeVersion: "14.0",
features: { shortCodes: true },
});
```
Expand All @@ -88,7 +88,8 @@ type UnicodeVersion =
| "12.0"
| "12.1"
| "13.0"
| "13.1";
| "13.1"
| "14.0";
```

When the `shortCodes`-feature is activated, an HTTP-Request will be made to the
Expand Down Expand Up @@ -116,7 +117,7 @@ import { createEmojiList, translateEmojiList } from "generate-emoji-list";
const { createEmojiList, translateEmojiList } = require("generate-emoji-list");

const emojiList = await createEmojiList({
unicodeVersion: "13.0",
unicodeVersion: "14.0",
features: { shortCodes: true },
});

Expand Down
1 change: 1 addition & 0 deletions lists/emojis-en-v14.0.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const UNICODE_VERSIONS = [
{ name: "12.1", message: "v12.1" },
{ name: "13.0", message: "v13.0" },
{ name: "13.1", message: "v13.1" },
{ name: "14.0", message: "v14.0" },
];

const Features = {
Expand Down
3 changes: 2 additions & 1 deletion src/createEmojiList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export type UnicodeVersion =
| "12.0"
| "12.1"
| "13.0"
| "13.1";
| "13.1"
| "14.0";

const LINE_REGEX = /^.*?; fully-qualified\s+# (.*?) (?:E\d+\.\d+ )?(.*)$/;
const GROUP_REGEX = /^# group: (.*?)$/;
Expand Down

0 comments on commit 6433c4a

Please sign in to comment.