From 5504b2ff877609d3800d5fce4fbc36a3b01911a5 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 27 May 2022 08:46:47 +0200 Subject: Fix nested pattern matching --- src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt index c1cdf0f..8573560 100644 --- a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt +++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt @@ -18,9 +18,8 @@ internal class PsiPattern( val matcher = Matcher(element) if (matcher.match(pattern)) { result.add(matcher) - } else { - super.visitElement(element) } + super.visitElement(element) } }) } -- cgit