HackMD/public/js
Sheogorath 7e45533c75
Fix emoji regex
The old regex, adapted from the other plugins, was a bit too open for
matching. This leads to matching something like: `This is a sentence:
[And something with a: in it.]()` which doesn't become a link anymore.
Because the match is: ` [And something with a`.

This patch provides a fix for the regex to only match non-space string
within the `:`'s.

References:
- Introducing commit:
2063eb8bdf
- Inspirational source of the original RegEx:
2063eb8bdf/public/js/extra.js (L1095)

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-29 20:37:47 +01:00
..
lib Fix some false titles 2018-07-08 20:41:46 +02:00
cover.js Final replacements 2018-06-24 14:13:46 +02:00
extra.js Fix emoji regex 2018-10-29 20:37:47 +01:00
history.js Update store 2018-06-30 16:52:34 +02:00
htmlExport.js Use JavaScript Standard Style (part 2) 2017-03-09 02:41:05 +08:00
index.js Add autocomplete for highlight.js languages into codemirror 2018-10-10 11:13:52 +02:00
locale.js support Simplified Chinese and rename original zh to Traditional Chinese 2017-10-23 17:38:04 +08:00
mathjax-config-extra.js Fix MathJax config not being picked up 2017-10-22 02:48:24 +02:00
pretty.js Fix rendering might result XSS attribute on self closing tag [Security Issue] 2017-03-14 16:27:55 +08:00
render.js Update to allow rp tag for ruby 2018-02-26 20:55:10 +08:00
reveal-markdown.js Fix file permission, remove useless executable 2017-12-14 05:05:18 +08:00
slide.js Add Print icon to slide view 2018-06-24 23:50:38 +02:00
utils.js Update to migrate note url in the history of browser storage and cookie 2018-03-03 16:26:19 +08:00