Global

Members


paramTypes :Object

Shortcut regexes for matching specific types of parameters

  • WORD matches any string without whitespace
  • STRING matches any string without whitespace OR a double-quote enclosed string
  • NUM matches a number (including negative numbers and decimals)
  • REST matches anything, greedy; useful for commands where the last parameter can be any text

All regexes include separating whitespace at the start. If you wish to not include this (for instance, when building a command with a dynamic name), you can write the regex manually as a string.

Type:
  • Object