@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.
@@ -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}|^(bitcoincash:)?[q|p][a-z0-9]{41}|^(BITCOINCASH:)?[Q|P][A-Z0-9]{41}/.test(str);
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}|^ltc1[ac-hj-np-z02-9]{6,86}|^LTC1[AC-HJ-NP-Z02-9]{6,86}/.test(str);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipticltd/aml-utils",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Utilities, helpers, validations, type-checking, etc",
5
5
  "engines": {
6
6
  "node": "10.1.0",
package/.npmignore DELETED
@@ -1,4 +0,0 @@
1
- **/*.coffee
2
- test/
3
- .history
4
- .vscode