Character counter fix

lolsob-rspec
Kibigo 2017-02-27 04:32:41 -08:00
parent 796c903870
commit c47fe6cf40
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const CharacterCounter = React.createClass({
mixins: [PureRenderMixin],
render () {
const diff = this.props.max - this.props.text.length;
const diff = this.props.max - this.props.text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length;
return (
<span style={{ fontSize: '16px', cursor: 'default' }}>