fixed emoji regex.
This commit is contained in:
parent
b7631c6d97
commit
c32680a643
@ -201,7 +201,7 @@ const rules: MarkdownRules = {
|
|||||||
},
|
},
|
||||||
emoji: {
|
emoji: {
|
||||||
order: md.defaultRules.strong.order,
|
order: md.defaultRules.strong.order,
|
||||||
match: (source) => /^:([a-zA-z_-]*):/.exec(source),
|
match: (source) => /^:([^:\s]+):/.exec(source),
|
||||||
parse(capture) {
|
parse(capture) {
|
||||||
return {
|
return {
|
||||||
id: capture[1],
|
id: capture[1],
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
### Bugs
|
### Bugs
|
||||||
- Fixed fullscreen incompatibility for Safari [#121](https://github.com/m1k1o/neko/issues/121).
|
- Fixed fullscreen incompatibility for Safari [#121](https://github.com/m1k1o/neko/issues/121).
|
||||||
|
- Fixed bad emoji matching for e.g. `:+1:` and `:100:` with new regex `/^:([^:\s]+):/`.
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
- Added `m1k1o/neko:microsoft-edge` tag.
|
- Added `m1k1o/neko:microsoft-edge` tag.
|
||||||
|
Reference in New Issue
Block a user