Skip to content

Commit fdf7d5f

Browse files
committed
Extend regex to recognize Liquid blech32 addresses in search
Resolves #236
1 parent 6f252e5 commit fdf7d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/driver/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { tryUnconfidentialAddress, isHash256 } from '../util'
33
import { Observable as O } from '../rxjs'
44

55
const reNumber = /^\d+$/
6-
, reAddrLike = /^([a-km-zA-HJ-NP-Z1-9]{26,35}|[a-km-zA-HJ-NP-Z1-9]{80}|[a-z]{2,5}1[ac-hj-np-z02-9]{8,87}|[A-Z]{2,5}1[AC-HJ-NP-Z02-9]{8,87})$/
6+
, reAddrLike = /^([a-km-zA-HJ-NP-Z1-9]{26,35}|[a-km-zA-HJ-NP-Z1-9]{80}|[a-z]{2,5}1[ac-hj-np-z02-9]{8,100}|[A-Z]{2,5}1[AC-HJ-NP-Z02-9]{8,100})$/
77
, reShortTxOut = /^(\d+)([x:])(\d+)\2(\d+)$/
88
, trim = s => s.trim()
99
, stripUri = s => s.replace(/^bitcoin:([^?]+).*/, '$1')

0 commit comments

Comments
 (0)