(label: string)
| 99 | * stehen, statt dass eine erfundene Klammer erscheint. |
| 100 | */ |
| 101 | export function splitMenuLabel(label: string): MenuItem { |
| 102 | const match = /^\s*\[([^\]])\](.*)$/.exec(label); |
| 103 | return match === null ? { key: '', rest: label } : { key: match[1], rest: match[2] }; |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Die Menuezeile aus dem Vorbild. Jeder Punkt traegt seinen Buchstaben, und der |