epl comments can now start with whitespace

This commit is contained in:
2018-07-23 01:04:26 -07:00
parent c40916bd52
commit 6a6b8ff1dc

View File

@ -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*--.*");
} }
/** /**