Quellcode durchsuchen

Turn off greedy emoji matching (#381)

Fixes #377
Danilo Bargen vor 8 Jahren
Ursprung
Commit
78c334e9f2
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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';