|
@ -3216,7 +3216,7 @@ |
|
|
atLink : /@(\w+)/g, |
|
|
atLink : /@(\w+)/g, |
|
|
email : /(\w+)@(\w+)\.(\w+)\.?(\w+)?/g, |
|
|
email : /(\w+)@(\w+)\.(\w+)\.?(\w+)?/g, |
|
|
emailLink : /(mailto:)?([\w\.\_]+)@(\w+)\.(\w+)\.?(\w+)?/g, |
|
|
emailLink : /(mailto:)?([\w\.\_]+)@(\w+)\.(\w+)\.?(\w+)?/g, |
|
|
emoji : /:([\-\w]+):/g, |
|
|
|
|
|
|
|
|
emoji : /:([\+-\w]+):/g, |
|
|
emojiDatetime : /(\d{2}:\d{2}:\d{2})/g, |
|
|
emojiDatetime : /(\d{2}:\d{2}:\d{2})/g, |
|
|
twemoji : /:(tw-([\w]+)-?(\w+)?):/g, |
|
|
twemoji : /:(tw-([\w]+)-?(\w+)?):/g, |
|
|
fontAwesome : /:(fa-([\w]+)(-(\w+)){0,}):/g, |
|
|
fontAwesome : /:(fa-([\w]+)(-(\w+)){0,}):/g, |
|
@ -3287,7 +3287,11 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (var i = 0, len = matchs.length; i < len; i++) |
|
|
for (var i = 0, len = matchs.length; i < len; i++) |
|
|
{ |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
if (matchs[i] === ":+1:") { |
|
|
|
|
|
matchs[i] = ":\\+1:"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
text = text.replace(new RegExp(matchs[i]), function($1, $2){ |
|
|
text = text.replace(new RegExp(matchs[i]), function($1, $2){ |
|
|
var faMatchs = $1.match(faIconReg); |
|
|
var faMatchs = $1.match(faIconReg); |
|
|
var name = $1.replace(/:/g, ""); |
|
|
var name = $1.replace(/:/g, ""); |
|
@ -3315,7 +3319,7 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (twemojiMatchs) |
|
|
else if (twemojiMatchs) |
|
|
{ |
|
|
|
|
|
|
|
|
{ |
|
|
for (var t = 0, len3 = twemojiMatchs.length; t < len3; t++) |
|
|
for (var t = 0, len3 = twemojiMatchs.length; t < len3; t++) |
|
|
{ |
|
|
{ |
|
|
var twe = twemojiMatchs[t].replace(/:/g, "").replace("tw-", ""); |
|
|
var twe = twemojiMatchs[t].replace(/:/g, "").replace("tw-", ""); |
|
@ -3324,7 +3328,10 @@ |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
return "<img src=\"" + editormd.emoji.path + name + editormd.emoji.ext + "\" class=\"emoji\" title=\":" + name + ":\" alt=\":" + name + ":\" />"; |
|
|
|
|
|
|
|
|
var src = (name === "+1") ? "plus1" : name; |
|
|
|
|
|
src = (src === "black_large_square") ? "black_square" : src; |
|
|
|
|
|
|
|
|
|
|
|
return "<img src=\"" + editormd.emoji.path + src + editormd.emoji.ext + "\" class=\"emoji\" title=\":" + name + ":\" alt=\":" + name + ":\" />"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|