Skip to content

Commit

Permalink
Convenience method to return pattern that was matched
Browse files Browse the repository at this point in the history
  • Loading branch information
augustd committed Jan 7, 2020
1 parent 92c2757 commit 14b34a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/codemagi/burp/ScannerMatch.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.codemagi.burp;

import java.util.regex.Pattern;

/**
*
* @author August Detlefsen [augustd at codemagi dot com]
Expand Down Expand Up @@ -70,6 +72,10 @@ public String getMatchGroup() {
public MatchRule getRule() {
return rule;
}

public Pattern getPattern() {
return rule.getPattern();
}

public String getType() {
return type;
Expand Down

0 comments on commit 14b34a7

Please sign in to comment.