diff --git a/src/main/kotlin/org/openrewrite/RecipeOrigin.kt b/src/main/kotlin/org/openrewrite/RecipeOrigin.kt index 003544c..3735389 100755 --- a/src/main/kotlin/org/openrewrite/RecipeOrigin.kt +++ b/src/main/kotlin/org/openrewrite/RecipeOrigin.kt @@ -20,7 +20,8 @@ class RecipeOrigin( private fun convertNameToJavaPath(recipeName: String): String = recipeName .replace('.', '/') - .replace(Regex("Recipes?\\$?.*"), "") + ".java" + .replace(Regex("\\$.*"), "") + .replace(Regex("Recipes?$"), "") + ".java" fun githubUrl(): String { return if (isFromCoreLibrary()) {