Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update master

  • Loading branch information...
commit dfa6e39b88e1b2b1b22312d7207e483631d22c35 1 parent bf3e761
laune authored
View
6 drools-compiler/src/main/java/org/drools/lang/dsl/DefaultExpander.java
@@ -60,8 +60,7 @@
Pattern.compile( ruleOrQuery,
Pattern.DOTALL | Pattern.MULTILINE | Pattern.COMMENTS );
- private static final Pattern comments1 = Pattern.compile( "(?:/\\*(?:[^*])*\\*+/)" );
- private static final Pattern comments2 = Pattern.compile( "(?:/\\*(?:\\*+[^*/])*\\*+/)" );
+ private static final Pattern comments = Pattern.compile( "/\\*.*?\\*/", Pattern.DOTALL );
// This pattern finds a statement's modify body
private static final Pattern modifyFinder = Pattern.compile( "\\{(.*?)\\}" );
@@ -322,8 +321,7 @@ private String cleanupExpressions(String drl) {
// }
private String removeComments(String drl) {
- drl = comments1.matcher(drl).replaceAll("");
- return comments2.matcher(drl).replaceAll("");
+ return comments.matcher(drl).replaceAll("");
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.