Hello, I am trying to make a code, where the "check-spelling" feature will work on fully capitalised words, I was wondering if there was a script to insert into the document for this to work in any way?
Here is that I have:
var str = "AaBbCcDdEeFfJjHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
var patt1 = /ABCDEFGHIJKLMNOPQRSTUVWXYZ/i;
var res = patt1.ignoreCase;
It won't correct the word, "ADVOL" but it will correct it when it is lower-case.
So this could be a more efficient regExp for search all words and ignoring the case.
If you could post your full script we might be able to help more.
I would also recommend checking this site out to see if your regexp catches specific words you are concerned about... (plus it helps show what your code is doing at the bottom.
How would I inject:
into my script to make spell-check work on fully capitalised words, if you don't mind me asking