Skip to content

Commit

Permalink
Update rewrite-groovy/src/main/java/org/openrewrite/groovy/GroovyPars…
Browse files Browse the repository at this point in the history
…erParentheseDiscoverer.java

Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
jevanlingen and timtebeek authored Dec 5, 2024
1 parent 2184912 commit cd6e229
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class GroovyParserParentheseDiscoverer {
class GroovyParserParentheseDiscoverer {
// Matches a code block including leading and trailing parenthesis
// Eg: ((((a.invoke~~>("arg")))))<~~ or ~~>(((((( "" as String )))))<~~.toString())
private static final Pattern PARENTHESES_GROUP = Pattern.compile(".*?(\\(+[^()]+\\)+).*", Pattern.DOTALL);
Expand Down

0 comments on commit cd6e229

Please sign in to comment.