function (passwordsValue) {
                const set = passwordsValue.split(',new:');

                if (set.length === 2) {
                    rootPasswords.old = set[0].split('old:')[1];
                    rootPasswords.new = set[1];
                }
            }
function (passwordsValue) {
                const set = passwordsValue.split(',new:');

                if (set.length === 2) {
                    rootPasswords.old = set[0].split('old:')[1];
                    rootPasswords.new = set[1];
                }
            }
function ( passwordsValue ) { const set = passwordsValue . split ( ',new:' ) ; if ( set . length === 2 ) { rootPasswords . old = set [ 0 ] . split ( 'old:' ) [ 1 ] ; rootPasswords . new = set [ 1 ] ; } }
Special case of util.pair. Used to parse root password options in the form of
old:oldRootPassword,new:newRootPassword
Since passwords can contain any character, a delimiter is difficult to find.
Compromise by looking for ',new:' as a delimeter
Special case of util . pair . Used to parse root password options in the form of old : oldRootPassword new : newRootPassword Since passwords can contain any character a delimiter is difficult to find . Compromise by looking for new : as a delimeter