Add support for Wikipedia Emoji Templates: EMOWIKI
diff --git a/src/index.js b/src/index.js
index ab05072..370a2ba 100755
--- a/src/index.js
+++ b/src/index.js
@@ -6,6 +6,7 @@
const emailRegex = /^\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/;
const addressRegex = /^@[a-zA-Z0-9]+/;
const actionWordRegex = /^:[^:]+:$/;
+const wikiEmojiRegex = /^\[_EMOJI:[^\]]+\]$/;
const optionDefinitions = [
{ name: 'sparse', alias: 's', type: Boolean, description: 'Print only the files, lines that have POS annotations.'},
@@ -103,7 +104,9 @@
const word = columns[1];
var new_tag = null;
- if (word.match(emojiRegex)) {
+ if (word.match(wikiEmojiRegex)) {
+ new_tag = 'EMOWIKI';
+ } else if (word.match(emojiRegex)) {
new_tag = 'EMOIMG';
} else if(word.match(actionWordRegex)) {
new_tag = 'AKW';