File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
44[ ![ Status] ( https://img.shields.io/badge/Status-Stable-green )] ( https://github.com/Medalcode/NetOpsToolkit )
55[ ![ Deploy] ( https://img.shields.io/badge/Deploy-Netlify-00C7B7 )] ( https://netops-toolkit.netlify.app )
6- [ ![ Tests] ( https://img.shields.io/badge/Tests-34 %20passing-success )] ( https://github.com/Medalcode/NetOpsToolkit )
6+ [ ![ Tests] ( https://img.shields.io/badge/Tests-36 %20passing-success )] ( https://github.com/Medalcode/NetOpsToolkit )
77[ ![ CI] ( https://github.com/Medalcode/NetOpsToolkit/actions/workflows/ci.yml/badge.svg )] ( https://github.com/Medalcode/NetOpsToolkit/actions )
88
99> ** "La Navaja Suiza para Ingenieros de Red"**
Original file line number Diff line number Diff line change 2929 "tailwindcss" : " ^3.4.1" ,
3030 "vite" : " ^5.0.0"
3131 },
32- "dependencies" : {
33- "@popperjs/core" : " ^2.11.8" ,
34- "bootstrap" : " ^5.3.3"
35- }
36- ,
32+
3733 "lint-staged" : {
3834 "src/**/*.js" : [
3935 " npm run lint:fix" ,
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export function decimalToIP(decimal) {
3737 * prefixToMask(16) // "255.255.0.0"
3838 */
3939export function prefixToMask ( prefix ) {
40+ if ( prefix === 0 ) return '0.0.0.0' ;
4041 const mask = ( 0xffffffff << ( 32 - prefix ) ) >>> 0 ;
4142 return decimalToIP ( mask ) ;
4243}
You can’t perform that action at this time.
0 commit comments