Skip to content

Commit

Permalink
Also link the individual case correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 14, 2023
1 parent 1299399 commit 2288bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/openrewrite/RecipeOrigin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RecipeOrigin(
fun isFromCoreLibrary() = groupId == "org.openrewrite" && coreLibs.contains(artifactId)

private fun convertNameToJavaPath(recipeName: String): String =
recipeName.replace('.', '/').replace(Regex("Recipes\\$?.*"), "") + ".java"
recipeName.replace('.', '/').replace(Regex("Recipes?\\$?.*"), "") + ".java"

fun githubUrl(recipeName: String, source: URI): String {
val sourceString = source.toString()
Expand Down

0 comments on commit 2288bc7

Please sign in to comment.