mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Fixed check for emoji index
The emoji *must* be at index=2 as each line looks like: "* <commit message>" We use index=2 to make test whether emoji is first character(s) in the commit message
This commit is contained in:
parent
5e9bf5cfb5
commit
f8f96b49db
@ -18,7 +18,7 @@ module.exports.filterEmojiCommits = (content) => {
|
||||
obj[index] = line;
|
||||
|
||||
const match = emojiRegex().exec(line);
|
||||
return match && match.index !== 2;
|
||||
return match && match.index === 2;
|
||||
});
|
||||
|
||||
return content;
|
||||
|
Loading…
Reference in New Issue
Block a user