1313## Usage
1414
1515``` js
16- const bch = require (' bitcoincash-regex' )
16+ const bchRegex = require (' bitcoincash-regex' )
1717
18- bch ().test (' nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
18+ bchRegex ().test (' nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
1919// => true
2020
21- bch ({exact: true }).test (' nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k foo' )
21+ bchRegex ({exact: true }).test (' nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k foo' )
2222// => false
2323
24- bch ({exact: true }).test (' 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
24+ bchRegex ({exact: true }).test (' 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
2525// => true
2626
27- bch .format (' cashaddr' , {exact: true }).test (' bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a' )
27+ bchRegex .format (' cashaddr' , {exact: true }).test (' bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a' )
2828// => true
2929
30- bch .format (' cashaddr' , {exact: true }).test (' 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
30+ bchRegex .format (' cashaddr' , {exact: true }).test (' 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k' )
3131// => false
3232
3333' nodejsrocks 19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k unicorn bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a rainbow' .match (bitcoincashRegex ());
@@ -37,7 +37,7 @@ bch.format('cashaddr', {exact: true}).test('19hZx234vNtLazfx5J2bxHsiWEmeYE8a7k')
3737
3838## API
3939
40- ### bch ([ options] )
40+ ### bchRegex ([ options] )
4141
4242Returns a regex for matching BCH addresses.
4343
@@ -49,7 +49,7 @@ Default: `false` *(Matches any BCH address in a string)*
4949Only match an exact string. Useful with ` RegExp#test() ` to check if a string is an BCH address.
5050
5151
52- ### bch .format([ format] , [ options] )
52+ ### bchRegex .format([ format] , [ options] )
5353
5454Returns a regex for matching specific BCH format addresses.
5555
0 commit comments