[spellchecker] IJPL-33181 The fstring in the comment is recognized as a typo

GitOrigin-RevId: e131ad867debceca86f5499e6a13214c5877d12f
This commit is contained in:
Ilia Permiashkin
2025-06-05 18:57:22 +00:00
committed by intellij-monorepo-bot
parent 236d302d9d
commit b91c9ab0cb
3 changed files with 10 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ public class PlainTextSplitter extends BaseSplitter {
else if (word.startsWith(JWT_COMMON_PREFIX) && JWT_PATTERN.matcher(word).matches()) {
toCheck = emptyList();
}
else if (word.startsWith("f'")) {
toCheck = List.of(new TextRange(wRange.getStartOffset() + 2, wRange.getEndOffset()));
}
else if (wordLength == MD5_HEX_LENGTH && MD5_HEX_PATTERN.matcher(word).matches() ||
wordLength == SHA1_HEX_LENGTH && SHA1_HEX_PATTERN.matcher(word).matches() ||
wordLength == SHA256_HEX_LENGTH && SHA256_HEX_PATTERN.matcher(word).matches() ||

View File

@@ -28,6 +28,8 @@ class SPITest1 {
/*
<TYPO descr="Typo: In word 'werty'">werty</TYPO> within method
*/
// print(f'hello world')
// print(f'<TYPO descr="Typo: In word 'typpoo'">typpoo</TYPO> world')
// single line <TYPO descr="Typo: In word 'newss'">newss</TYPO> within method
}
}