File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
* @property {Array<SentenceInclusiveDescendant> } nodes
20
20
*/
21
21
22
- import { ok as assert } from 'devlop'
23
22
import emojiRegex from 'emoji-regex'
24
23
import { nameToEmoji } from 'gemoji'
25
24
import { toString } from 'nlcst-to-string'
@@ -86,10 +85,12 @@ export function emojiModifier(node) {
86
85
const child = nodes [ index ]
87
86
88
87
if ( child . type === 'EmoticonNode' ) {
88
+ // Always exists if we run, but other tools like
89
+ // `nlcst-emoticon-modifier` may not have it.
89
90
const match = matchMap . get ( child )
90
- assert ( match )
91
91
92
92
if (
93
+ match &&
93
94
previous &&
94
95
previous . type === 'EmoticonNode' &&
95
96
matchMap . get ( previous ) === match
Original file line number Diff line number Diff line change 33
33
],
34
34
"dependencies" : {
35
35
"@types/nlcst" : " ^2.0.0" ,
36
- "devlop" : " ^1.0.0" ,
37
36
"emoji-regex" : " ^10.0.0" ,
38
37
"gemoji" : " ^8.0.0" ,
39
38
"nlcst-emoticon-modifier" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments