Skip to content

Commit d893283

Browse files
committed
Change in regex to meet current ZAP format
1 parent 92530b5 commit d893283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/nccgroup/loggerplusplus/imports/LoggerImport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ public static ArrayList<IHttpRequestResponse> importZAP() {
114114
Iterator<String> i = lines.iterator();
115115

116116
// Format:
117-
// ==== [0-9]+ ==========
117+
// ===[0-9]+ ==========
118118
// REQUEST
119119
// <empty>
120120
// RESPONSE
121-
String reSeparator = "^==== [0-9]+ ==========$";
121+
String reSeparator = "^=+ ?[0-9]+ ?=+$";
122122
String reResponse = "^HTTP/[0-9]\\.[0-9] [0-9]+ .*$";
123123

124124
// Ignore first line, since it should be a separator

0 commit comments

Comments
 (0)