ethereum-regex
Advanced tools
Comparing version 1.1.11 to 1.1.12
declare namespace ethereumRegex { | ||
interface Options { | ||
/** | ||
Only match an exact string. By default, it matches any ETH addresses in a string. Useful with `RegExp#test()` to check if a string is an ETH address. | ||
@default false | ||
*/ | ||
readonly exact?: boolean; | ||
interface Options { | ||
/** | ||
Only match an exact string. By default, it matches any ETH addresses in a string. Useful with `RegExp#test()` to check if a string is an ETH address. | ||
@default false | ||
*/ | ||
readonly exact?: boolean; | ||
} | ||
@@ -12,9 +12,9 @@ } | ||
/** | ||
Returns a regex for matching Ethereum (ETH) addresses. | ||
@example | ||
``` | ||
import ethereumRegex = require('ethereum-regex') | ||
ethereumRegex().test('nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16') | ||
//=> true | ||
``` | ||
Returns a regex for matching Ethereum (ETH) addresses. | ||
@example | ||
``` | ||
import ethereumRegex = require('ethereum-regex') | ||
ethereumRegex().test('nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16') | ||
//=> true | ||
``` | ||
*/ | ||
@@ -21,0 +21,0 @@ declare function ethereumRegex(options?: ethereumRegex.Options): RegExp; |
{ | ||
"name": "ethereum-regex", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Regular expression for matching Ethereum (ETH) addresses.", | ||
@@ -19,2 +19,5 @@ "license": "MIT", | ||
}, | ||
"ava": { | ||
"babel": true | ||
}, | ||
"xo": { | ||
@@ -33,6 +36,7 @@ "semicolon": false | ||
"devDependencies": { | ||
"ava": "^1.2.1", | ||
"@ava/babel": "^1.0.1", | ||
"ava": "^3.5.2", | ||
"tsd": "^0.11.0", | ||
"xo": "^0.25.3" | ||
"xo": "^0.25.4" | ||
} | ||
} |
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
4758
4