mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-159341
Replace in file: Regex for start of line matches twice on empty lines
This commit is contained in:
@@ -927,6 +927,14 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
assertSize(2, findUsages(findModel));
|
||||
}
|
||||
|
||||
public void testProperHandlingOfEmptyLinesWhenReplacingWithRegExp() throws Exception {
|
||||
doTestRegexpReplace(
|
||||
"foo\n\n\n",
|
||||
"^",
|
||||
"// ",
|
||||
"// foo\n// \n// \n");
|
||||
}
|
||||
|
||||
private void runAsyncTest(String text, FindModel findModel) throws InterruptedException {
|
||||
final Ref<FindResult> result = new Ref<>();
|
||||
final CountDownLatch progressStarted = new CountDownLatch(1);
|
||||
|
||||
Reference in New Issue
Block a user