@ellipticltd/aml-utils 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/validations.js +2 -2
- package/package.json +1 -1
- package/.npmignore +0 -4
package/lib/validations.js
CHANGED
|
@@ -205,7 +205,7 @@ const validations = {
|
|
|
205
205
|
},
|
|
206
206
|
bitcoinCash: {
|
|
207
207
|
isAddress(str) {
|
|
208
|
-
return /^[13][a-km-zA-HJ-NP-Z1-9]{25,34}
|
|
208
|
+
return /^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^(bitcoincash:)?[q|p][a-z0-9]{41}$|^(BITCOINCASH:)?[Q|P][A-Z0-9]{41}$/.test(str);
|
|
209
209
|
},
|
|
210
210
|
isTxHash(str) {
|
|
211
211
|
if (!V.isHexadecimal(`${str}`)) {
|
|
@@ -216,7 +216,7 @@ const validations = {
|
|
|
216
216
|
},
|
|
217
217
|
litecoin: {
|
|
218
218
|
isAddress(str) {
|
|
219
|
-
return /^[3LM][a-km-zA-HJ-NP-Z1-9]{24,33}
|
|
219
|
+
return /^[3LM][a-km-zA-HJ-NP-Z1-9]{24,33}$|^ltc1[ac-hj-np-z02-9]{6,86}$|^LTC1[AC-HJ-NP-Z02-9]{6,86}$/.test(str);
|
|
220
220
|
},
|
|
221
221
|
isTxHash(str) {
|
|
222
222
|
if (!V.isHexadecimal(`${str}`)) {
|
package/package.json
CHANGED
package/.npmignore
DELETED