Skip to content

Commit 763863a

Browse files
committed
现在类似x:x:x的时间格式也不会被解析为emoji
1 parent af08536 commit 763863a

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)