code: function maskPassword(connectionString) {
      return connectionString.replace(/:(?![/])([^@]+)/, (_, m) => {
          return ':' + new Array(m.length + 1).join('#');
      });
  }
docs: ///////////////////////////////////////////////////////// Replaces password letters with # in a connection string.