Regex Find always case-sensitive with non-english characters (IDEA-104681)

This commit is contained in:
Maxim.Mossienko
2016-09-14 12:25:50 +02:00
parent 1cae7748db
commit dd946ffbe9
2 changed files with 8 additions and 1 deletions
@@ -920,6 +920,13 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
runAsyncTest("/*" + text + "*/", findModel);
}
public void testProperInsensitiveSearchForRegExp() throws Exception {
createFile("a.java", "Цитрус цитрус");
FindModel findModel = FindManagerTestUtils.configureFindModel("цитрус");
findModel.setRegularExpressions(true);
assertSize(2, findUsages(findModel));
}
private void runAsyncTest(String text, FindModel findModel) throws InterruptedException {
final Ref<FindResult> result = new Ref<>();
final CountDownLatch progressStarted = new CountDownLatch(1);