fix single character multisig threshold parsing issue

This commit is contained in:
Craig Raw 2023-07-23 13:12:51 +02:00
parent d7b97c99dc
commit 8313d16e97

View file

@ -6,7 +6,7 @@ import java.util.regex.Pattern;
public class Miniscript { public class Miniscript {
private static final Pattern SINGLE_PATTERN = Pattern.compile("pkh?\\("); private static final Pattern SINGLE_PATTERN = Pattern.compile("pkh?\\(");
private static final Pattern TAPROOT_PATTERN = Pattern.compile("tr\\("); private static final Pattern TAPROOT_PATTERN = Pattern.compile("tr\\(");
private static final Pattern MULTI_PATTERN = Pattern.compile("multi\\(([\\d+])"); private static final Pattern MULTI_PATTERN = Pattern.compile("multi\\((\\d+)");
private String script; private String script;