File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515``` js
1616const ethereumRegex = require (' ethereum-regex' );
1717
18- ethereumRegex ().test (' nodejsr0cks 0x281055afc982d96fab65b3a49cac8b878184cb16' );
18+ ethereumRegex ().test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16' );
1919// => true
2020
21- ethereumRegex ({exact: true }).test (' nodejsr0cks 0x281055afc982d96fab65b3a49cac8b878184cb16 foo' );
21+ ethereumRegex ({exact: true }).test (' nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16 foo' );
2222// => false
2323
2424ethereumRegex .v6 ({exact: true }).test (' 0x281055afc982d96fab65b3a49cac8b878184cb16' );
2525// => true
2626
27- ' nodejsr0cks 0x6f46cf5569aefa1acc1009290c8e043747172d89 unicorn 0x90e63c3d53e0ea496845b7a03ec7548b70014a91 rainbow' .match (ethereumRegex ());
27+ ' nodejsrocks 0x6f46cf5569aefa1acc1009290c8e043747172d89 unicorn 0x90e63c3d53e0ea496845b7a03ec7548b70014a91 rainbow' .match (ethereumRegex ());
2828// => ['0x6f46cf5569aefa1acc1009290c8e043747172d89', '0x90e63c3d53e0ea496845b7a03ec7548b70014a91']
2929```
3030
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ test('Non-exact ETH addresses', t => {
2828 for ( const x of fixtures ) {
2929 t . is ( ( m ( ) . exec ( `foo ${ x } bar` ) || [ ] ) [ 0 ] , x ) ;
3030 }
31-
31+
3232 t . is ( m ( ) . exec ( 'ethereum:0x90e63c3d53e0ea496845b7a03ec7548b70014a91' ) [ 0 ] , '0x90e63c3d53e0ea496845b7a03ec7548b70014a91' ) ;
3333} ) ;
3434
You can’t perform that action at this time.
0 commit comments