You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//sentence punctuation such as comma, colon, semi-colon, period, exclamation mark, question mark, etc. should be ignored
var is_spelled_correctly = dictionary.check("word,") //should be true, but returns false
The text was updated successfully, but these errors were encountered:
It case it is helpful here is a list of punctuation that I am using to work around this issue (it includes non-English punctuation too):
,.?¿!¡;:'"‘’“”‚„‹›«»–— *†‡
Here's my actual line of code:
word = word.replace(/(^[,.?¿!¡;:'"‘’“”‚„‹›«»–— †‡]|[,.?¿!¡;:'"‘’“”‚„‹›«»–— †‡]$)/g,""); //trim off any punctuation (without removing apostrophes from the middle of the word)
This is very much needed while implementing custom spell checkers and word suggestions. Any idea if this one is resolved or if there is any work around?
//sentence punctuation such as comma, colon, semi-colon, period, exclamation mark, question mark, etc. should be ignored
var is_spelled_correctly = dictionary.check("word,") //should be true, but returns false
The text was updated successfully, but these errors were encountered: