Update BTC & LTC regex for Taproot and stricter

This commit is contained in:
Ygsk Lv.212 2025-11-17 09:46:24 +00:00 committed by linsui
parent 4bc44b0f96
commit 18dd78c095

View file

@ -310,12 +310,12 @@
"Bitcoin": {
"description": "A Bitcoin address for donating to the project.",
"type": "string",
"pattern": "^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$"
"pattern": "^([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[02-9ac-hj-np-z]{39,59})$"
},
"Litecoin": {
"description": "A Litecoin address for donating to the project.",
"type": "string",
"pattern": "^([LM3][a-km-zA-HJ-NP-Z1-9]{26,33}|ltc1[ac-hj-np-z0-9]{39})$"
"pattern": "^([LM3][a-km-zA-HJ-NP-Z1-9]{26,33}|ltc1[02-9ac-hj-np-z]{39,59})$"
},
"Name": {
"description": "The title of the application, with optional descriptive phrase.",