Skip to content

Commit

Permalink
Remove the java description patch
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed May 14, 2024
1 parent d41e499 commit 98847bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/tfgen/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2183,9 +2183,8 @@ func extractExamples(description string) string {
}

var (
reTerraform = regexp.MustCompile("[Tt]erraform")
reHashicorp = regexp.MustCompile("[Hh]ashicorp")
illegalJavaPattern = regexp.MustCompile("(?m)^@pattern.*")
reTerraform = regexp.MustCompile("[Tt]erraform")
reHashicorp = regexp.MustCompile("[Hh]ashicorp")
)

func elide(text string) bool {
Expand All @@ -2195,8 +2194,6 @@ func elide(text string) bool {

// reformatText processes markdown strings from TF docs and cleans them for inclusion in Pulumi docs
func reformatText(g infoContext, text string, footerLinks map[string]string) (string, bool) {
// TODO[pulumi/pulumi-java#1271]: This should be fixed in pulumi/pulumi-java
text = illegalJavaPattern.ReplaceAllString(text, "")

cleanupText := func(text string) (string, bool) {
// Remove incorrect documentation.
Expand Down

0 comments on commit 98847bf

Please sign in to comment.