cashaccounts
Advanced tools
Comparing version 0.4.0 to 0.4.1
16
index.js
@@ -793,2 +793,18 @@ const EmojiList = require('./emoji_names.json'); | ||
const cashAccountRegex = /^([a-zA-Z0-9_]+)(#([0-9]+)(([0-9]+))).([0-9]+)?$/i; | ||
const split = this.splitHandle(string); | ||
const { username, number } = split; | ||
if (isNaN(number)) { | ||
return false; | ||
} | ||
if (username === undefined) { | ||
return false; | ||
} | ||
if (number === undefined) { | ||
return false; | ||
} | ||
return cashAccountRegex.test(string); | ||
@@ -795,0 +811,0 @@ } |
{ | ||
"name": "cashaccounts", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "decentralized identity system for bitcoin cash by Jonathan Silverblood", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29098
863