File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ export class Address {
347347 al > IPV6_LEN_LIM ||
348348 sep !== - 1 && addr . indexOf ( '::' , sep + 1 ) !== - 1 // only one '::' allowed
349349 )
350- throw new Error ( `Invalid address0 : ${ addr } ` )
350+ throw new Error ( `Invalid address : ${ addr } ` )
351351
352352 const groups : number [ ] = [ ]
353353 let p = 0 , gc = - 1
@@ -385,7 +385,7 @@ export class Address {
385385 p = i + 1
386386 }
387387 const offset = 8 - groups . length
388- if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address4 : ${ addr } ` )
388+ if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address : ${ addr } ` )
389389
390390 let big = 0n
391391 for ( let i = 0 ; i < 8 ; i ++ ) {
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ var _Address = class _Address {
344344 const al = addr . length ;
345345 const sep = addr . indexOf ( "::" ) ;
346346 if ( al > IPV6_LEN_LIM || sep !== - 1 && addr . indexOf ( "::" , sep + 1 ) !== - 1 )
347- throw new Error ( `Invalid address0 : ${ addr } ` ) ;
347+ throw new Error ( `Invalid address : ${ addr } ` ) ;
348348 const groups = [ ] ;
349349 let p = 0 , gc = - 1 ;
350350 while ( true ) {
@@ -372,7 +372,7 @@ var _Address = class _Address {
372372 p = i + 1 ;
373373 }
374374 const offset = 8 - groups . length ;
375- if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address4 : ${ addr } ` ) ;
375+ if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address : ${ addr } ` ) ;
376376 let big = /* @__PURE__ */ BigInt ( "0" ) ;
377377 for ( let i = 0 ; i < 8 ; i ++ ) {
378378 const idx = i < gc ? i : i < gc + offset ? - 1 : i - offset ;
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ var _Address = class _Address {
309309 const al = addr . length ;
310310 const sep = addr . indexOf ( "::" ) ;
311311 if ( al > IPV6_LEN_LIM || sep !== - 1 && addr . indexOf ( "::" , sep + 1 ) !== - 1 )
312- throw new Error ( `Invalid address0 : ${ addr } ` ) ;
312+ throw new Error ( `Invalid address : ${ addr } ` ) ;
313313 const groups = [ ] ;
314314 let p = 0 , gc = - 1 ;
315315 while ( true ) {
@@ -337,7 +337,7 @@ var _Address = class _Address {
337337 p = i + 1 ;
338338 }
339339 const offset = 8 - groups . length ;
340- if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address4 : ${ addr } ` ) ;
340+ if ( gc === - 1 ? offset !== 0 : offset < 1 ) throw new Error ( `Invalid address : ${ addr } ` ) ;
341341 let big = /* @__PURE__ */ BigInt ( "0" ) ;
342342 for ( let i = 0 ; i < 8 ; i ++ ) {
343343 const idx = i < gc ? i : i < gc + offset ? - 1 : i - offset ;
You can’t perform that action at this time.
0 commit comments