UI for Zipcoin Blue

12345678910111213
  1. 'use strict';
  2. var escapeArgument = require('./escapeArgument');
  3. function escapeCommand(command) {
  4. // Do not escape if this command is not dangerous..
  5. // We do this so that commands like "echo" or "ifconfig" work
  6. // Quoting them, will make them unaccessible
  7. return /^[a-z0-9_-]+$/i.test(command) ? command : escapeArgument(command, true);
  8. }
  9. module.exports = escapeCommand;