Browse Source

yet another fix to (safe-again) rewrite_emoticons :(

Andrew Dolgov 1 year ago
parent
commit
2322a43d82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/functions.js

+ 1 - 1
js/functions.js

@@ -344,7 +344,7 @@ function rewrite_emoticons(str, kind) {
 	}
 
 	var index = 0;
-	var tmp = tmp.safeReplace(/:([^ :]+):/g, function(match) {
+	var tmp = tmp.safeReplace(/:([^ :]+):/, function(match) {
 		return rewrite_emoticon(match[0], ++index);
 	});