mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 20:54:00 +00: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]:
|
||
---|---|---|
.. | ||
css | ||
docs | ||
fonts | ||
js | ||
uploads | ||
vendor | ||
views | ||
apple-touch-icon.png | ||
codimd-icon-1024.png | ||
default.md | ||
favicon.png | ||
screenshot.png |