Skip to content
Snippets Groups Projects
Commit 4d2af0d6 authored by Kibigo's avatar Kibigo
Browse files

Character counter fix

parent af5cb0f8
No related branches found
Tags v1.3
No related merge requests found
......@@ -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' }}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment