Skip to content

Commit eb641cc

Browse files
committedSep 28, 2017
Parse string for emoji count before use
1 parent fface50 commit eb641cc

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
@@ -69,7 +69,7 @@ function interpolateName(loaderContext, name, options) {
6969
)
7070
.replace(
7171
/\[emoji(?::(\d+))?\]/ig,
72-
(all, length) => encodeStringToEmoji(content, length)
72+
(all, length) => encodeStringToEmoji(content, parseInt(length, 10))
7373
);
7474
}
7575
url = url

0 commit comments

Comments
 (0)
Please sign in to comment.