mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
d188b3526a
The Regex introduced in the last commit[1], was already working quite
good. But still resulted in false positives for all URL that contained a
second `:`.
To fix this once and for all, we craft a simple, but long regex based on
all emoji names and use this to match them.
We could probably optimize it, but that should also be something the
regex engine itself can and should do.
[1]:
|
||
---|---|---|
.. | ||
lib | ||
cover.js | ||
extra.js | ||
history.js | ||
htmlExport.js | ||
index.js | ||
locale.js | ||
mathjax-config-extra.js | ||
pretty.js | ||
render.js | ||
reveal-markdown.js | ||
slide.js | ||
utils.js |