| 44 | ----------------------------------------------------------------------------------------------------*/ |
| 45 | |
| 46 | interface CmdParts { |
| 47 | head: string | null |
| 48 | middle: CmdParts | null |
| 49 | tail: string | null |
| 50 | whole: string |
| 51 | } |
| 52 | |
| 53 | function parseCmdStr(cmdStr: string): CmdParts { |
| 54 | let parts = cmdStr.match(/^(.*?)\{(.*)\}(.*)$/) // TODO: lookbehinds for escape characters |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…