Skip to content

Commit

Permalink
Update xo
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 20, 2021
1 parent 4aafa73 commit 216ee24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const own = {}.hasOwnProperty

const type = 'EmoticonNode'

const vs16 = 0xfe0f
const vs16 = 0xfe_0f

/** @type {Record<string, gemoji[number]>} */
const emoji2info = {}
Expand All @@ -44,18 +44,14 @@ const fns = {
* @param {string} emoji
* @returns {string}
*/
encode: (emoji) => {
return emoji
},
encode: (emoji) => emoji,
/**
* Change to a GitHub emoji short-code.
*
* @param {string} emoji
* @returns {string}
*/
decode: (emoji) => {
return ':' + emoji2info[emoji].names[0] + ':'
}
decode: (emoji) => ':' + emoji2info[emoji].names[0] + ':'
}

init()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"unist-builder": "^3.0.0",
"xo": "^0.39.0"
"xo": "^0.42.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
Expand Down

0 comments on commit 216ee24

Please sign in to comment.