From 13fc4cc0a448ed5c75daebbbadd0cf190fa52615 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Tue, 26 Aug 2014 22:39:39 +0200 Subject: [PATCH] emoji.pl: fixed rule order --- modules/emoji.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/emoji.pl b/modules/emoji.pl index 94b99b33..069bd813 100644 --- a/modules/emoji.pl +++ b/modules/emoji.pl @@ -15,8 +15,8 @@ AddModuleDescription('emoji.pl', 'Smilies'); push(@MyRules, \&EmojiRule); -# this can be last -$RuleOrder{\&EmojiRule} = 500; +# this must come before tex.pl because of \o/ turning into ø/ +$RuleOrder{\&EmojiRule} = 150; # Some relevant links # https://en.wikipedia.org/wiki/List_of_emoticons @@ -28,7 +28,7 @@ sub EmojiRule { } elsif (/\G:[-o]?\)/cg) { # 😊 1F60A SMILING FACE WITH SMILING EYES return '😊'; - } elsif (/\G:3\)/cg) { + } elsif (/\G:3/cg) { # 😸 1F638 GRINNING CAT FACE WITH SMILING EYES return '😸'; } elsif (/\G:-?\(/cg) {