We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98ed8f commit ac7652fCopy full SHA for ac7652f
src/plugins/emoji.js
@@ -1,7 +1,7 @@
1
/* eslint-disable camelcase */
2
const AllGithubEmoji = {
3
- '100': 'unicode/1f4af',
4
- '1234': 'unicode/1f522',
+ 100: 'unicode/1f4af',
+ 1234: 'unicode/1f522',
5
'+1': 'unicode/1f44d',
6
'-1': 'unicode/1f44e',
7
'1st_place_medal': 'unicode/1f947',
@@ -1804,8 +1804,8 @@ const AllGithubEmoji = {
1804
1805
// Emoji from GitHub API
1806
// https://api.github.com/emojis
1807
-window.emojify = function(match, $1) {
1808
- return AllGithubEmoji.hasOwnProperty($1) === false
+window.emojify = function (match, $1) {
+ return Object.prototype.hasOwnProperty.call(AllGithubEmoji, $1) === false
1809
? match
1810
: '<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' +
1811
AllGithubEmoji[$1] +
0 commit comments