File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1313## Usage
1414
1515``` js
16- const ethereumRegex = require (' ethereum-regex' );
16+ const ethereumRegex = require (' ethereum-regex' )
1717
18- ethereumRegex ().test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16' );
18+ ethereumRegex ().test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16' )
1919// => true
2020
21- ethereumRegex ({exact: true }).test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16 foo' );
21+ ethereumRegex ({exact: true }).test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16 foo' )
2222// => false
2323
24- ethereumRegex ({exact: true }).test (' 0x281055afc982d96fab65b3a49cac8b878184cb16' );
24+ ethereumRegex ({exact: true }).test (' 0x281055afc982d96fab65b3a49cac8b878184cb16' )
2525// => true
2626
27- ' nodejsrocks 0x6f46cf5569aefa1acc1009290c8e043747172d89 unicorn 0x90e63c3d53e0ea496845b7a03ec7548b70014a91 rainbow' .match (ethereumRegex ());
27+ ' nodejsrocks 0x6f46cf5569aefa1acc1009290c8e043747172d89 unicorn 0x90e63c3d53e0ea496845b7a03ec7548b70014a91 rainbow' .match (ethereumRegex ())
2828// => ['0x6f46cf5569aefa1acc1009290c8e043747172d89', '0x90e63c3d53e0ea496845b7a03ec7548b70014a91']
2929```
3030
You can’t perform that action at this time.
0 commit comments