Character counter fix

master
Kibigo 7 years ago
parent af5cb0f853
commit 4d2af0d664
  1. 2
      app/assets/javascripts/components/features/compose/components/character_counter.jsx

@ -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' }}>

Loading…
Cancel
Save