Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/oi/thekraken/grok/api/Grok.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ public void compile(String pattern) throws GrokException {
// Log the exeception
}
}
if(!grokPatternDefinition.containsKey(group.get("pattern"))){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bekce Add space after if and parenthesis.

if (!grokPatternDefinition.containsKey(group.get("pattern"))) {

throw new GrokException("Pattern name " + group.get("pattern") + " unknown!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alter the indentation to consistent with the existing code.

}
namedRegexCollection.put("name" + index,
(group.get("subname") != null ? group.get("subname") : group.get("name")));
namedRegex =
Expand Down