Skip to content

Commit

Permalink
Fix #296 (MultiGo SGF detection)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Jun 23, 2018
1 parent e617cdb commit 16d0a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/featurecat/lizzie/rules/SGFParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static boolean parse(String value) {
StringBuilder tagContentBuilder = new StringBuilder();
// MultiGo 's branch: (Main Branch (Main Branch) (Branch) )
// Other 's branch: (Main Branch (Branch) Main Branch)
if (value.charAt(value.length() - 2) == ')') {
if (value.matches("(?m)(?s).*\\)\\s*\\)")) {
isMultiGo = true;
}

Expand Down

0 comments on commit 16d0a41

Please sign in to comment.