Skip to content

Commit a18d1a4

Browse files
authoredOct 20, 2017
Merge pull request #100 from embrace-io/master
Parse string for emoji count before use.
2 parents 8b7834a + eb641cc commit a18d1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/interpolateName.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function interpolateName(loaderContext, name, options) {
7373
)
7474
.replace(
7575
/\[emoji(?::(\d+))?\]/ig,
76-
(all, length) => encodeStringToEmoji(content, length)
76+
(all, length) => encodeStringToEmoji(content, parseInt(length, 10))
7777
);
7878
}
7979
url = url

0 commit comments

Comments
 (0)
Please sign in to comment.