Skip to content

Commit af4c1cc

Browse files
authored
Merge pull request #1 from LiquidCats/feature/bch-long-p-addresses-support
feature: long p-address support
2 parents c020cc9 + 928b049 commit af4c1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/Base32Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function match(string $address): bool
3737
$address = strtolower($address);
3838

3939
$prefix = implode('|', array_keys($this->options));
40-
$pattern = sprintf('/^((%s)?([qp])[a-z0-9]{41})/', $prefix);
40+
$pattern = sprintf('/^((%s)?([qp])[a-z0-9]{41,120})/', $prefix);
4141

4242
return preg_match($pattern, $address) === 1;
4343
}

0 commit comments

Comments
 (0)