From 8313d16e97e708e7674646d43d66cf08b052b863 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sun, 23 Jul 2023 13:12:51 +0200 Subject: [PATCH] fix single character multisig threshold parsing issue --- src/main/java/com/sparrowwallet/drongo/policy/Miniscript.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/drongo/policy/Miniscript.java b/src/main/java/com/sparrowwallet/drongo/policy/Miniscript.java index 98294b5..d92883c 100644 --- a/src/main/java/com/sparrowwallet/drongo/policy/Miniscript.java +++ b/src/main/java/com/sparrowwallet/drongo/policy/Miniscript.java @@ -6,7 +6,7 @@ import java.util.regex.Pattern; public class Miniscript { private static final Pattern SINGLE_PATTERN = Pattern.compile("pkh?\\("); 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;