Skip to content

Commit

Permalink
Improve links to recipes that contain Recipes?
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 15, 2024
1 parent 71ff899 commit b3060b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/openrewrite/RecipeOrigin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit b3060b5

Please sign in to comment.