Skip to content

Commit

Permalink
#patch: Fixes #165 - regex not working with headers and JSON snapshots (
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmatt2 authored Apr 22, 2024
1 parent 11407b4 commit 916db6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public String getIdentifier() {
}

public static Snapshot parse(String rawText) {
String regex = "^(?<name>.*?)(\\[(?<scenario>.*)\\])?=(?<header>\\{.*\\})?(?<snapshot>(.*)$)";
String regex = "^(?<name>.*?)(\\[(?<scenario>.*)\\])?=(?<header>\\{.*?\\})?(?<snapshot>(.*)$)";
Pattern p = Pattern.compile(regex, Pattern.DOTALL);
Matcher m = p.matcher(rawText);
boolean found = m.find();
Expand Down

0 comments on commit 916db6f

Please sign in to comment.