Skip to content

Commit

Permalink
group to make clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
beaugunderson committed Apr 20, 2024
1 parent 8c99866 commit 3026874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipv6.ts
Expand Up @@ -583,7 +583,7 @@ export class Address6 {
let correct = groups.join(':');

correct = correct.replace(/^compact$/, '::');
correct = correct.replace(/^compact|compact$/, ':');
correct = correct.replace(/(^compact)|(compact$)/, ':');
correct = correct.replace(/compact/, '');

return correct;
Expand Down

0 comments on commit 3026874

Please sign in to comment.