(input)
| 481 | } |
| 482 | |
| 483 | function removeFormattingTokens(input) { |
| 484 | if (input.match(/\[[\s\S]/)) { |
| 485 | return input.replace(/^\[|\]$/g, ''); |
| 486 | } |
| 487 | return input.replace(/\\/g, ''); |
| 488 | } |
| 489 | |
| 490 | function makeFormatFunction(format) { |
| 491 | var array = format.match(formattingTokens), |
no outgoing calls
no test coverage detected