summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-14 13:06:26 +0800
committerruki <[email protected]>2016-07-14 13:06:26 +0800
commitda4a5080928e8500b54df127a471723e8f0baf0a (patch)
treeae3d1f862eb7e6b5d8b2e4cc33a99f3ee15d21a4
parent6dc09d1faad7c94dfd19fc71566100a219bdfc1a (diff)
check emoji supported
-rw-r--r--xmake/core/base/emoji.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/emoji.lua b/xmake/core/base/emoji.lua
index 4bf22a8b6..7279a3ca8 100644
--- a/xmake/core/base/emoji.lua
+++ b/xmake/core/base/emoji.lua
@@ -37,7 +37,9 @@ emoji.keys =
function emoji.translate(str)
-- check supported?
- -- TODO
+ if xmake._HOST ~= "macosx" then
+ return nil
+ end
-- translate it
return emoji.keys[str]