rangeOfMisspelledWordInString find random letters as valid word

后端 未结 2 843
迷失自我
迷失自我 2020-12-22 05:53

Can anybody duplicate this result? I\'m testing rangeOfMisspelledWordInString (in iOS) to find mispelled words and some random letters return a va

2条回答
  •  忘掉有多难
    2020-12-22 06:33

    Yes, I can reproduce it, and I would call this a bug. If I put in your test word, @"lhpcjeuw", it treats it as a valid word. But, if I use @"lahpcjeuw" (added an "a" in second position), it catches it. I noticed the same thing Tim did -- when writing this answer, the spell checker underlined that second one but not the first as I typed.

提交回复
热议问题