File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 542
542
var countOfRemainingChars = maxCommentLength ;
543
543
var text = cm . getValue ( ) ;
544
544
if ( text != null && text . length > 0 ) {
545
+ text = gdn . normalizeText ( text ) ;
545
546
countOfRemainingChars = maxCommentLength - text . length ;
546
547
if ( countOfRemainingChars < 0 ) {
547
548
countOfRemainingChars = 0 ;
553
554
var countOfRemainingChars = maxCommentLength ;
554
555
var text = cm . getValue ( ) ;
555
556
if ( text != null && text . length > 0 ) {
557
+ text = gdn . normalizeText ( text ) ;
556
558
countOfRemainingChars = maxCommentLength - text . length ;
557
559
if ( countOfRemainingChars < 0 ) {
558
560
countOfRemainingChars = 0 ;
575
577
var messageContainer = $ ( frm ) . find ( '.editor-statusbar .message' ) ;
576
578
577
579
var text = cm . getValue ( ) ;
580
+ text = gdn . normalizeText ( text ) ;
578
581
if ( text . length > 0 && text . length <= maxCommentLength ) {
579
582
$ ( editorContainer ) . removeClass ( 'error' ) ;
580
583
$ ( messageContainer ) . text ( '' ) ;
You can’t perform that action at this time.
0 commit comments