Commit 23635fb5 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33711

parent 1fcb92cd
No related merge requests found
......@@ -309,6 +309,14 @@ CParaSpellChecker.prototype =
Add : function(StartPos, EndPos, Word, Lang)
{
if (Word.length > 0)
{
if (Word.charAt(Word.length - 1) == '\'')
Word = Word.substr(0, Word.length - 1);
if (Word.charAt(0) == '\'')
Word = Word.substr(1);
}
var SpellCheckerEl = new CParaSpellCheckerElement( StartPos, EndPos, Word, Lang );
this.Paragraph.Add_SpellCheckerElement( SpellCheckerEl );
this.Elements.push( SpellCheckerEl );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment