@@ -146,7 +146,7 @@ function _validateContent(report, fields = []) {
146146 header . networkInterfaces . forEach ( ( iface ) => {
147147 assert . strictEqual ( typeof iface . name , 'string' ) ;
148148 assert . strictEqual ( typeof iface . internal , 'boolean' ) ;
149- assert ( / ^ ( [ 0 - 9 A - F ] [ 0 - 9 A - F ] : ) { 5 } [ 0 - 9 A - F ] { 2 } $ / i. test ( iface . mac ) ) ;
149+ assert . match ( iface . mac , / ^ ( [ 0 - 9 A - F ] [ 0 - 9 A - F ] : ) { 5 } [ 0 - 9 A - F ] { 2 } $ / i) ;
150150
151151 if ( iface . family === 'IPv4' ) {
152152 assert . strictEqual ( net . isIPv4 ( iface . address ) , true ) ;
@@ -171,7 +171,7 @@ function _validateContent(report, fields = []) {
171171 assert ( typeof frame === 'object' && frame !== null ) ;
172172 checkForUnknownFields ( frame , [ 'pc' , 'symbol' ] ) ;
173173 assert . strictEqual ( typeof frame . pc , 'string' ) ;
174- assert ( / ^ 0 x [ 0 - 9 a - f ] + $ / . test ( frame . pc ) ) ;
174+ assert . match ( frame . pc , / ^ 0 x [ 0 - 9 a - f ] + $ / ) ;
175175 assert . strictEqual ( typeof frame . symbol , 'string' ) ;
176176 } ) ;
177177
@@ -250,7 +250,7 @@ function _validateContent(report, fields = []) {
250250 report . libuv . forEach ( ( resource ) => {
251251 assert . strictEqual ( typeof resource . type , 'string' ) ;
252252 assert . strictEqual ( typeof resource . address , 'string' ) ;
253- assert ( / ^ 0 x [ 0 - 9 a - f ] + $ / . test ( resource . address ) ) ;
253+ assert . match ( resource . address , / ^ 0 x [ 0 - 9 a - f ] + $ / ) ;
254254 assert . strictEqual ( typeof resource . is_active , 'boolean' ) ;
255255 assert . strictEqual ( typeof resource . is_referenced ,
256256 resource . type === 'loop' ? 'undefined' : 'boolean' ) ;
0 commit comments