Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Oct 11, 2023
1 parent 62d7d62 commit e01b65f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/io/projectdiscovery/nuclei/model/Word.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Word implements TemplateMatcher {
private final String type = Word.class.getSimpleName().toLowerCase();

@YamlProperty
private final Boolean negative = false;
private Boolean negative;

@YamlProperty
private Part part = Part.all;
Expand Down Expand Up @@ -86,4 +86,12 @@ public Condition getCondition() {
public void setCondition(Condition condition) {
this.condition = condition;
}

public Boolean getNegative() {
return negative;
}

public void setNegative(Boolean negative) {
this.negative = negative;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ void testDeserializeYaml() {
" matchers-condition: or\n" +
" matchers:\n" +
" - type: word\n" +
" negative: true\n" +
" part: all\n" +
" condition: and\n" +
" words:\n" +
Expand Down

0 comments on commit e01b65f

Please sign in to comment.