@@ -33,8 +33,12 @@ describe('sanitize', function () {
3333 assert . strictEqual ( sanitize ( V2_TOKEN ) , '<REMOVED>' ) ;
3434 } ) ;
3535
36- it ( 'should redact a short string starting with v2x' , function ( ) {
37- assert . strictEqual ( sanitize ( 'v2xaabb' ) , '<REMOVED>' ) ;
36+ it ( 'should not redact a short string starting with v2x' , function ( ) {
37+ assert . strictEqual ( sanitize ( 'v2xaabb' ) , 'v2xaabb' ) ;
38+ } ) ;
39+
40+ it ( 'should not redact a short string starting with xprv' , function ( ) {
41+ assert . strictEqual ( sanitize ( 'xprv9abc' ) , 'xprv9abc' ) ;
3842 } ) ;
3943
4044 it ( 'should redact a string starting with xprv' , function ( ) {
@@ -106,8 +110,8 @@ describe('sanitize', function () {
106110 assert . deepStrictEqual ( sanitize ( { key : XPRV_KEY } ) , { key : '<REMOVED>' } ) ;
107111 } ) ;
108112
109- it ( 'should redact a short v2x object value' , function ( ) {
110- assert . deepStrictEqual ( sanitize ( { key : 'v2xaabb' } ) , { key : '<REMOVED> ' } ) ;
113+ it ( 'should not redact a short v2x object value' , function ( ) {
114+ assert . deepStrictEqual ( sanitize ( { key : 'v2xaabb' } ) , { key : 'v2xaabb ' } ) ;
111115 } ) ;
112116
113117 it ( 'should not redact when sensitive prefix is not at the start of value' , function ( ) {
0 commit comments