浏览代码

Turn off greedy emoji matching (#381)

Fixes #377
Danilo Bargen 8 年之前
父节点
当前提交
78c334e9f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/filters.ts

+ 1 - 1
src/filters.ts

@@ -98,7 +98,7 @@ angular.module('3ema.filters', [])
  * Set the `imgTag` parameter to `true` to use inline PNGs instead of sprites.
  */
 .filter('emojify', function() {
-    return function(text, imgTag = false, greedyMatch = true) {
+    return function(text, imgTag = false, greedyMatch = false) {
         if (text !== null) {
             emojione.sprites = imgTag !== true;
             emojione.emojiSize = '32';