Skip to content

Commit

Permalink
Fix compiling emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk committed Aug 25, 2015
1 parent eea3102 commit e918378
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/MyCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export default class MyCompiler extends Compiler {
let chunks = node.value
.split(/:([0-9a-z_+-]+):/g)
.map((type, i) => {
if (i % 2 === 0) {
return <span>{type}</span>;
}
if (type.charAt(0) === '+') {
type = type.substr(1);
}
Expand Down

0 comments on commit e918378

Please sign in to comment.