Skip to content

Commit b02dbce

Browse files
committed
Merge pull request pandao#244 from Yutyrannus/master
类似x:x:x的时间格式也不会被解析为emoji
2 parents af08536 + 763863a commit b02dbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editormd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3343,7 +3343,7 @@
33433343
email : /(\w+)@(\w+)\.(\w+)\.?(\w+)?/g,
33443344
emailLink : /(mailto:)?([\w\.\_]+)@(\w+)\.(\w+)\.?(\w+)?/g,
33453345
emoji : /:([\w\+-]+):/g,
3346-
emojiDatetime : /(\d{2}:\d{2}:\d{2})/g,
3346+
emojiDatetime : /(\d{1,2}:\d{1,2}:\d{1,2})/g,
33473347
twemoji : /:(tw-([\w]+)-?(\w+)?):/g,
33483348
fontAwesome : /:(fa-([\w]+)(-(\w+)){0,}):/g,
33493349
editormdLogo : /:(editormd-logo-?(\w+)?):/g,

0 commit comments

Comments
 (0)