epl comments can now start with whitespace
This commit is contained in:
@ -83,7 +83,7 @@ public class EsperProcessor implements TickProcessor {
|
|||||||
* Return true if the given string is a comment.
|
* Return true if the given string is a comment.
|
||||||
*/
|
*/
|
||||||
private static boolean isComment(String str) {
|
private static boolean isComment(String str) {
|
||||||
return str.startsWith("//") || str.startsWith("--");
|
return str.matches("^\\s*//.*") || str.matches("^\\s*--.*");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user