Skip to content

Commit e918378

Browse files
committed
Fix compiling emoji
1 parent eea3102 commit e918378

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/renderer/MyCompiler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export default class MyCompiler extends Compiler {
8686
let chunks = node.value
8787
.split(/:([0-9a-z_+-]+):/g)
8888
.map((type, i) => {
89+
if (i % 2 === 0) {
90+
return <span>{type}</span>;
91+
}
8992
if (type.charAt(0) === '+') {
9093
type = type.substr(1);
9194
}

0 commit comments

Comments
 (0)